Run a cron job every minute, meaning of syntax

qed

I read somewhere that you can add a cron job to run every minute like this:

#min hour day month weekday command
*/1   *    *    *    *     <your command>

What does the /1 part mean? Can I omit it?

Tim B

That is the step value. so */2 means every other hour, */3 every third hour, etc. The default step is 1, so you can omit /1 if you want a step value of 1.

see the crontab(5) man page for more detail. man 5 crontab

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related