[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

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

would schedule command to run at midnight on any Monday that is between the first and seventh day of the month inclusive, which should always be the first Monday of that month.

--
Avi Greenbury :) http://aviswebsite.co.uk


Reply to: