Versions Compared

Key

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

...

Lets recap the structure of a cron attribute:

Code Block
cron -w <integer_list><weekdays> -d <integer_list><days> -m <integer_list><months> [ <time>
time = single time slot *OR* time series 
integer_list = comma separated integer list, see below for list of valid values

...

|| <start_time> <end_time> <increment> ]
# weekdays:   range [0...6], Sunday=0, Monday=1, etc    e.g. -w, 0,3,6
# days:       range [1..31]                             e.g. -d 1,2,20,30    if the month does not have a day, i.e. February 31st it is ignored
# months:     range [1..12]                             e.g. -m 5,6,7,8
# start_time: The starting time. format hh:mm           e.g. 15:21
# end_time:   The end time, if multiple times used
# increment:  The increment in time if multiple times are given
 

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

...