How to schedule a biweekly cronjob?
Posted
by
Roman
on Server Fault
See other posts from Server Fault
or by Roman
Published on 2012-07-03T14:37:40Z
Indexed on
2012/07/03
15:17 UTC
Read the original article
Hit count: 246
crontab(5) defines the following fields:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
and explains:
Step values can be used in conjunction with ranges. Following a range with ``/<number>'' specifies skips of the number's value through the range. For example, ``0-23/2'' can be used in the hours field to specify command execution every other hour (the alternative in the V7 standard is ``0,2,4,6,8,10,12,14,16,18,20,22'').
So, no biweekly Jobs, as far as my understanding goes. I'm quite sure there are workarounds, what are yours? Or did I miss something?
© Server Fault or respective owner