Core iTOps Tube

Monday, 14 May 2012

Difference between these cron commands

Hi all I want to make sure I was understanding this correctly



if a cron job command was




Code:


* */20 * * * command

does that mean this command will run every 20 hours?



also what is the difference between the following two?




Code:


0,20,40 * * * * command


Code:


20 * * * * command

I believe the first one runs the command at 0, 20 and 40 minutes while the other runs every 20 minutes. . but I am not sure. Thanks:b:




No comments:

Post a Comment