Re: complex crontab query

2003-10-07 Thread Odhiambo Washington
* Matthew Seaman [EMAIL PROTECTED] [20030930 21:08]: wrote: On Tue, Sep 30, 2003 at 07:49:57PM +0300, Odhiambo Washington wrote: This question was asked and was answered by Crist J. Clark some years gone. Google could not help me so I beg to ask here: crontab(5) should be all you need.

Re: complex crontab query

2003-10-07 Thread Matthew Seaman
On Tue, Oct 07, 2003 at 05:53:47PM +0300, Odhiambo Washington wrote: * Matthew Seaman [EMAIL PROTECTED] [20030930 21:08]: wrote: 23 11 * * Thu [ $(date +%d) -lt 8 ] your_script How does that differ with the following? 23 11 * * 4 if [ `date +\%d` -le 7 ]; then

RE: complex crontab query

2003-09-30 Thread Charles Howse
This question was asked and was answered by Crist J. Clark some years gone. Google could not help me so I beg to ask here: I would like to run a script via crontab every 1. 3rd day and 28th day of each month (seems easy) 2. Every first Thursday of the month One solution would be to

Re: complex crontab query

2003-09-30 Thread Matthew Seaman
On Tue, Sep 30, 2003 at 07:49:57PM +0300, Odhiambo Washington wrote: This question was asked and was answered by Crist J. Clark some years gone. Google could not help me so I beg to ask here: crontab(5) should be all you need. I would like to run a script via crontab every 1. 3rd day and

Re: complex crontab query

2003-09-30 Thread Matthew Hunt
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

Re: complex crontab query

2003-09-30 Thread Kai Grossjohann
Matthew Hunt [EMAIL PROTECTED] writes: 2. Every first Thursday of the month 0 3 1-7 * * [ `date +%a` = Thu ] mycommand My understanding is that putting more than one condition in it performs a logical conjunction. So wouldn't it work to do like this? # minute hour dom month dow

Re: complex crontab query

2003-09-30 Thread Matthew Hunt
On Tue, Sep 30, 2003 at 10:56:20PM +0200, Kai Grossjohann wrote: My understanding is that putting more than one condition in it performs a logical conjunction. So wouldn't it work to do like this? # minute hour dom month dow command 031-7 * 4 mycommand I thought that

Re: complex crontab query

2003-09-30 Thread Kai Grossjohann
Matthew Hunt [EMAIL PROTECTED] writes: On Tue, Sep 30, 2003 at 10:56:20PM +0200, Kai Grossjohann wrote: My understanding is that putting more than one condition in it performs a logical conjunction. So wouldn't it work to do like this? # minute hour dom month dow command 03