[CentOS] run script on cron job only run on first Saturdat every month???
Stephen Harris
lists at spuddy.orgWed Jul 31 16:01:22 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 08:52:02AM -0700, Bart Schaefer wrote: > 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 "*". The manpage explicitly says Note: The day of a command's execution can be specified by two fields -- day of month, and day of week. If both fields are restricted (ie, aren't *), the command will be run when either field matches the cur- rent time. For example, "30 4 1,15 * 5" would cause a command to be run at 4:30 am on the 1st and 15th of each month, plus every Friday. -- rgds Stephen
- 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