Re: What means "*/5" in crontab file?



In article <48419a7b$0$6552$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
wmeister@xxxxxxxxxxx (Wolfgang Meister) wrote:

In the crontab I found some repetition values with a slash like

*/5

or

*/4

What does that mean e.g. in the second (=hpur) column?

Every 4 hours? Or 4 times per hour?

Wolfgang

From crontab(5):

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''). Steps are also permitted
after an asterisk, so if you want to say ``every two hours'', just
use ``*/2''.

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.