chintansshah Posted October 22, 2010 Share Posted October 22, 2010 Hello Friends, I am very confused about how to implement Crontab in such scenario. I want to run crontab every 20 mins from 12:00AM(midnight) to till morning 6:00AM only. Please help. Quote Link to comment https://forums.phpfreaks.com/topic/216556-crontab-settings/ Share on other sites More sharing options...
phpchamps Posted October 22, 2010 Share Posted October 22, 2010 Crontab has a specific format. below is the format... Min Hour Day/month Month Day/week Description 30 0 1 1,6,12 * 00:30 Hrs on 1st of Jan, June & Dec. 0 20 * 10 1-5 8.00 PM every weekday (Mon-Fri) only in Oct. I think what you require is:- Min Hour Day/month Month Day/week Description /20 00-06 * * 1-7 [td][/td] Hope this helps.... Quote Link to comment https://forums.phpfreaks.com/topic/216556-crontab-settings/#findComment-1125194 Share on other sites More sharing options...
trq Posted October 22, 2010 Share Posted October 22, 2010 */20 0,1,2,3,4,5 * * * commandtoexecute Quote Link to comment https://forums.phpfreaks.com/topic/216556-crontab-settings/#findComment-1125422 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.