Crontab Question
When I execute crontab -l
I get get this listing for one of the jobs: 5 0-20/4 * * * I understand the first set is minutes and the second is hours, but what is the "/4?" Does that mean the job runs 5 minutes after the hour every 4 hours between midnight and 8pm? :) |
Nope. It means "run every 4 hours in the range from 0 to 20. An excerpt from man 5 crontab explaining it all:
Code:
Ranges of numbers are allowed. Ranges are two numbers separated with a hyphen. The specified range |
Your response looks like what I explained in my first post (except the 5 minutes part). And, 0-20? Doesn't that mean midnight - 8pm?
|
Oh yes. Sorry. I read your post too quickly! Indeed the job will run at 00:05, 04:05, 08:05, 12:05, 16:05, 20:05. Hours in crontab are in the 24-hours format.
|
Cool, thanks.
|
All times are GMT -5. The time now is 04:04 AM. |