Date: Tue, 30 Sep 2003 11:10:29 -0700 From: Matthew Hunt <mph@astro.caltech.edu> To: Odhiambo Washington <wash@wananchi.com>, Free BSD Questions list <freebsd-questions@freebsd.org> Subject: Re: complex crontab query Message-ID: <20030930181029.GA2738@wopr.caltech.edu> In-Reply-To: <20030930164957.GL59342@ns2.wananchi.com> References: <20030930164957.GL59342@ns2.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Here are untested examples that I think should work. They run the job at 3:00 am (the first two fields). On Tue, Sep 30, 2003 at 07:49:57PM +0300, Odhiambo Washington wrote: > 1. 3rd day and 28th day of each month (seems easy) 0 3 3,28 * * mycommand > 2. Every first Thursday of the month 0 3 1-7 * * [ `date +%a` = Thu ] && mycommand -- Matthew Hunt <mph@astro.caltech.edu> * Science rules. http://www.pobox.com/~mph/ *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030930181029.GA2738>