From owner-freebsd-hackers Tue Apr 15 16:28:40 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA19771 for hackers-outgoing; Tue, 15 Apr 1997 16:28:40 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA19756 for ; Tue, 15 Apr 1997 16:28:33 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.7.3) id JAA29833; Wed, 16 Apr 1997 09:38:03 +1000 (EST) Date: Wed, 16 Apr 1997 09:38:02 +1000 (EST) From: "Daniel O'Callaghan" To: smc@servtech.com cc: freebsd-hackers@freebsd.org Subject: Re: crontab question In-Reply-To: <3353e8cb0.49af@cyber2.servtech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 15 Apr 1997 smc@servtech.com wrote: > What I'd like to do is set up a cron task that runs on either the first > or last Sunday of every month. As an experiment, I've got: > > 0 14 * * 0/4 root mail -s "cron test" root > > This seems to be frustratingly close, but it leaves me guessing which > Sunday it will run on, and it hasn't been in long enough to run yet. Which do you *want* it to run on? 0 14 1-7 * 0 root mail -s "cron test" root will run on the first Sunday. 0 14 25-31 1,3-12 0 root mail -s "cron test" root 0 14 21-28 2 0 root mail -s "cron test" root will run on most last Sundays. Danny