From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 188591381F3 for ; Sat, 15 Dec 2012 17:23:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 062F2E064B; Sat, 15 Dec 2012 17:23:15 +0000 (UTC) Received: from mail2.viabit.com (mail2.viabit.com [65.246.80.16]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3530421C01E for ; Sat, 15 Dec 2012 17:21:40 +0000 (UTC) Received: from [172.17.29.6] (vpn1.metro-data.com [65.213.236.242]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail2.viabit.com (Postfix) with ESMTPSA id 3YNwQq2rn1z1hfM for ; Sat, 15 Dec 2012 12:21:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orlitzky.com; s=mail2; t=1355592099; bh=LBoLLpo7R7EV0z3jxp6g97WQFhQJpZedAxPd+hlD88o=; h=Date:From:To:Subject:References:In-Reply-To; b=wDg4PNrS4eOjWKNlPHIWgCKG378J/hxLy1hHzLi4in7VhoHXZWmRhxB2ryv9sw/7a FVeGNwYfzGp2tFM5sXwKbqwwjK7ZBajZLMs5lORimWzcG8TORUCO0PiWKdVALZoXT+ IwDlgviLE0wISj1FxYYtecSXmNXfXAWchihLTkXo= Message-ID: <50CCB1A2.70709@orlitzky.com> Date: Sat, 15 Dec 2012 12:21:38 -0500 From: Michael Orlitzky User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121104 Thunderbird/10.0.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] crontab questions References: <50C7F69B.6080100@orlitzky.com> <50C928EA.7000706@orlitzky.com> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 681823f0-710a-4069-86f7-921aabcda65e X-Archives-Hash: bbe93a09fcf80e7986fefd14d94521d2 On 12/14/2012 09:36 PM, Grant wrote: > > I got it working in /etc/crontab. Should I file a bug for > http://www.gentoo.org/doc/en/cron-guide.xml to mention that vixie-cron > must be restarted when making changes to /etc/crontab? It says: > > "Note that only Vixie-cron schedules jobs in /etc/crontab automatically." > You shouldn't have to restart vixie-cron, I think it just scans /etc/crontab every so often. > Wouldn't you rather use a one-liner like this? > > iptables -L -n | mail -s "mx1 iptables state" -a "From: > root@mx1.example.com " > postmaster@example.com > Even the simple stuff I like to keep in a separate shell script. They're all under version control so that if one server blows up, all I have to do is checkout the git repo and hit `make` on another box and everything will more-or-less work once I emerge @world. I could avoid using a temp file that way, but it ain't broke so I'm not going to fix it.