[CentOS] run script on cron job only run on first Saturdat every month???
Bart Schaefer
barton.schaefer at gmail.comWed Jul 31 15:52:02 UTC 2013
- Previous message: [CentOS] run script on cron job only run on first Saturdat every month???
- Next message: [CentOS] run script on cron job only run on first Saturdat every month???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Jul 31, 2013 at 8:35 AM, <m.roth at 5-cent.us> wrote: > > I agree with the original poster: why doesn't his work, which says 6 in > the location for day of week, which is Sat.? I'd think it meet the > criteria "it's somewhere between the 1st and the 7th of the month, and > it's a Sat", and that I think should be the same as yours.... > As Keith said, it's because the conditions are OR'd. A careful reading of crontab(5) shows that the algorithm is [minute AND hour AND (restricted day of week OR restricted day of month) AND month]. Day of week and day of month only restrict independently when one or both is "*".
- Previous message: [CentOS] run script on cron job only run on first Saturdat every month???
- Next message: [CentOS] run script on cron job only run on first Saturdat every month???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list