Seems pretty clear from the man page:
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''.
Your interpretation seems to be correct.
- Sukanta
On Fri, Nov 6, 2009 at 2:42 PM, Goh Yong Kwang <[email protected]> wrote:
> I saw an example at
> http://www.marksanborn.net/linux/learning-cron-by-example/ for a cron job as
> follows:
>
> It explains:
>
> Using the ‘/’ allows us to divide the day into chunks.
> Here, the tasks is executed every 4 hours (24/6 =4).
>
> 59 */6 * * * /home/username/backupsite
>
> I wonder if the explanation is correct after looking around. In this example,
> the cron job will be run at:
>
> 12:59am, 4:59am, 8:59am, 12:59pm, 4:59pm and 8:59pm
>
> But my interpretation is that it is run every 6 hours (step/interval) instead:
>
> 12:59am, 6:59am, 12:59pm and 6:59pm
>
> Am I wrong (or right)? How do we interpret the step?
>
> Goh, Yong Kwang
> Singapore
>
>
>
> Get your preferred Email name!
> Now you can @ymail.com and @rocketmail.com.
> http://mail.promotions.yahoo.com/newdomains/aa/
>
> _______________________________________________
> LUGS Mailing list - [email protected]
> List FAQ: http://wiki.lugs.org.sg/LugsMailingListFaq
> Info page: http://www.lugs.org.sg/mailman/listinfo/slugnet
> To unsubscribe send an empty email to: [email protected]
>
_______________________________________________
LUGS Mailing list - [email protected]
List FAQ: http://wiki.lugs.org.sg/LugsMailingListFaq
Info page: http://www.lugs.org.sg/mailman/listinfo/slugnet
To unsubscribe send an empty email to: [email protected]