cron - cronjob which backs off during off-peak hours -
I have a php script which executes crontab every 30 minutes without off-peak around 2-7 o'clock I did not get much traffic during the hours and so I do not want to run the script during these hours.
I'm not sure how to make a chronose which it has to do because I find it hard to test.
This time I see the cranobob like this
* / 30 * * * * / usr / bin / php /var/www/update/inv.php < / Code>
* / 30 0-1 8-23 * * * / usr / Bin / php /var/www/update/inv.php The range is inclusive, therefore 0-1 00:30, 01:30, then 8-23 will be 0830 to 2330
Ref:
Comments
Post a Comment