1
Previous colleague set up cron job every 5 min for 24 hrs. Now I need to modify this only running between 7am to 7pm.
I had never learned cron job so I googled and tried but it didn't work.
Task Scheduler is set as below
- Begin the task
On a schedule - Settings
One time - Advanced settings
Repeat task every 5 minutes for a duration of Indefinitely
Stop task if it runs longer than 30 minutes
Enabled
And I modified the batch file from
C:\PHP\php.exe -f C:\path\cron.php five-mins
to
*/5 7-19 * * * C:\PHP\php.exe -f C:\path\cron.php five-mins
Even I added */5 7-19 * * * to batch file, it doesn't work.
It would be appreciative if someone can help me. Thanks in advance and thanks for taking your time.
Try: http://stackoverflow.com/questions/4390617/windows-task-scheduler-run-only-during-window-of-time
– Kinnectus – 2015-06-11T09:42:19.977ockquote>
Big Chris, thanks for the suggestion I had a look and this could be one of the solution however this time I will use RedGrittyBrick's batch file coding. Anyway thank you very much!
– hasmai – 2015-06-11T10:51:27.567