Resume 0 * / 3 * * * Does the crontab process affect the hour at which runs occur?
I have a crontab configured to execute the 0th minute of every 3rd hour every day
The crontab syntax for this is:
0 */3 * * * perl test.pl
Will this always be done at the 0th minute of some specific hours of the day that are 3 hours apart. Or, will the time at which I install the new crontab affect the hour that will run?
+3
source to share
1 answer
This cron will run on hours that are divisible by 3, so it shouldn't matter what time it was started. The next pass of an hour divisible by 3 will be the first execution of your cron.
According to Chiyaan Suraj's comment, this will run for 0.3,6,9,12,15,18.21 hours.
In the second comment it will be on hours divisible by 5 (0,5,10,15,20)
+2
source to share