Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • -w day of the week  .   valid values are , 0 → 6 where 0 is Sunday , 1 is Monday etc AND
                                                                                      0L→6L, where 0L means last Sunday of the month, and 1L means the last Monday of the month, etc
                                                                                      It is an error to overlay, i.e. cron -w 0,1,2,1L,2L,3L   23:00  will throw an exception
  • -d day of the month,  valid values are in range 0-31,L   Extended so that we now use 'L' to mean the last day of the month
  • -m month                        valid values are in range 0-12
Code Block
cron -w 5L 23:00                   # run on *last* Friday(5L) of each month at 23pm
cron -w 0,1L 23:00                 # run every Sunday(0) and *last* Monday(1L) of the month at 23pm
cron -w 0L,1L,2L,3L,4L,5L,6L 10:00 # run on the last Monday,Tuesday..Saturday,Sunday of the month at 10 am
cron -d 1,L  23:00                 # Run on the first and last of the month at 23pm

...