Re: [OT] Cron and day of the week
> > T o n g wrote:
> >> I know we can put day of the week info as cron schedules, but how can I
> >> define:
> >> - first Monday of the month
> >> - second Monday of the month
> >> - last Monday of the month
> On Wednesday, 25.03.2009 at 16:34 +0000, Avi Greenbury wrote:
> > The first Monday of the month will be the only Monday within the first
> > seven days of the month.
> > 0 0 1-7 * 1 command
On 25.03.09 16:42, Dave Ewart wrote:
> I don't think that'll work as the original poster expects.
> If you specify both the day numbers *and* the day of the week in the
> crontab, the command will run when *either* matches; so your suggestion
> will run:
> - each day on 1st to 7th of the month;
> - each Monday (for the whole month).
> i.e. for March 2009, it will run on 1st through 7th inclusive and also
> on 9th, 16th, 23rd and 30th.
No, I think that _all_ fields have to match an entry to be executed.
That should exactly do the job
Matus UHLAR - fantomas, email@example.com ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Windows found: (R)emove, (E)rase, (D)elete