cPanel Cron interface can't handle "ever X hours, between Y and Z"
For years, I've run cron jobs every four hours to maintain and/or backup various website.
I stagger them - I run them at different minutes past the hour. I also don't want them all running between midnight and 1am, then between 4am and 5am, etc. So I run some at */4 hours. Others get run at "1-21/4", others at "2-22/4" and others at "3-23/4"
It works well - but I've always done it from the command line via "crontab -e"
I just tried setting such a job up via cPanel's Cron interface. If you enter "1-21/4" in the hours box, you get an error appear that "You did not format the date and time settings correctly." You can't add or edit the cron job while that error is showing. It's happy with "1-21", it's happy with "*/4", just not with "1-21/4".
This is a perfectly valid cron setting for the hours field. It would be good if cPanel's interface allowed the setting.
-
Hello :) The interface is designed to accept each hour separated by a comma. Thus, you would enter: 1,5,9,13,17,21
You could submit a feature request to have the interface accept the additional input type via: Submit A Feature Request Thank you.0
Please sign in to leave a comment.
Comments
1 comment