0

How can I create this Crontab with the following requirements:

  • 2nd full week in the month (14.11.2022) - script 2nd-monday.sh
  • 3rd full week of the month (21.11.2022) - script 3rd-monday.sh

I have already tried the following:

0 1 7-14 * 1 2nd-monday.sh
0 1 15-21 * 1 3rd-monday.sh

Unfortunately it doesn't work like this in November, but it does in October

Nick ODell
  • 15,465
  • 3
  • 32
  • 66
Basti
  • 1
  • 2
  • Trying to combine the day of month specifier with the day of week specifier results in weird and surprising behavior: while all other fields use an AND match, the day of month and day of week fields are an OR match. See here: https://stackoverflow.com/questions/34357126/why-crontab-uses-or-when-both-day-of-month-and-day-of-week-specified – Nick ODell Nov 14 '22 at 18:03

0 Answers0