ecFlow's documentation is now on readthedocs!

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Cron has been extended to support 'last day of the month' and last week day of the month.

  • -w day of the week
  • -d day of the month
  • -m month

Remember we *AND* across -w, -d, -m or *OR* for each element in -w, -d,-m

The new cron format will  use L,  in the -d parameter and -w

cron -w 0,1L 23:00                 # run every Sunday 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

The cron Late attribute can also be combined:  Remember we *AND* across -w, -d, -m or *OR* for each element in -w, -d,-m

cron -w 4L -d L 10:00             # run on the last Thursday of the month *AND Last of the month, this only occurs 3 times in a year in 2019
cron -w 0,1L -m 1 10:00           # run every Sunday and last Monday of the month, in January



  • No labels