From owner-freebsd-hackers Thu Jan 1 08:46:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA20173 for hackers-outgoing; Thu, 1 Jan 1998 08:46:31 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from androcles.com (dhh@androcles.com [204.57.240.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA20169 for ; Thu, 1 Jan 1998 08:46:23 -0800 (PST) (envelope-from alex@androcles.com) Received: (from dhh@localhost) by androcles.com (8.8.7/8.8.7) id IAA08247; Thu, 1 Jan 1998 08:46:11 -0800 (PST) Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <87afdg3o5d.fsf@pippin.jblhome.ping.dk> Date: Thu, 01 Jan 1998 08:31:29 -0800 (PST) From: "Duane H. Hesser" To: Jacob Bohn Lorensen Subject: Re: Revamping /etc/daily, weekly, monthly Cc: hackers@FreeBSD.ORG, Duncan Barclay , Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk The Vixie cron, as distributed with FreeBSD, already has a syntax for periodic command execution. Although the syntax is not described in the Freebsd manual pages for cron, I've check the sources, and...it's in there. Specifically, you get @reboot @hourly @daily @weekly @monthly @yearly @reboot runs commands at restart of cron, which is not precisely the same as system reboot, but is close enough. I've used this for some years, and it's manageable. All of these specs (except "@reboot") run their commands at midnight (Vixie's comments indicate a strong desire to avoid a "cron.conf" file, which seems a reasonable goal). This may not appeal to some (although I like it), but it would not be difficult to alter the source to stagger them a bit. You can check this out in /usr/src/usr.sbin/cron/lib/entry.c to see if this does what you want to do. -------------- Duane H. Hesser dhh@androcles.com