Date: Wed, 16 Apr 1997 09:38:02 +1000 (EST) From: "Daniel O'Callaghan" <danny@panda.hilink.com.au> To: smc@servtech.com Cc: freebsd-hackers@freebsd.org Subject: Re: crontab question Message-ID: <Pine.BSF.3.91.970416093307.10264m-100000@panda.hilink.com.au> In-Reply-To: <3353e8cb0.49af@cyber2.servtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970416093307.10264m-100000>