Hi,
i want to schedule a cron jobs. its should execute daily at 00:00 ,but in saturday the cron should execute at 23:00 . plz help. i want to schedule it in a single step.
Hi,
i want to schedule a cron jobs. its should execute daily at 00:00 ,but in saturday the cron should execute at 23:00 . plz help. i want to schedule it in a single step.
Hi.
Schedule the job every day at 23:00 (0 23 * * *), and add a line to your script:
[ $(date '+%w') -ne 6 ] && sleep 3600
or to the cronjob itself.
Otherwise, just set up two cronjobs.
0 0 * * 1-5,0 /path/yourscript
0 23 * * 6 /path/yourscript
?