complex crontab query
mph at astro.caltech.edu
Tue Sep 30 11:10:32 PDT 2003
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 at astro.caltech.edu> * Science rules.
More information about the freebsd-questions