Why my cron job doesn't work
Hi,
Juz funny, this cron job which shut down the machine use to work before but now is not, what went wrong ? However, when execute the shutdown command it works. Thank you. byng08 |
What user is the cron job setup for? Can you provide the output of crontab -l for that user. Also, why would you want a cronjob to shutdown your server?
|
Hi,
The output is as below : 35 17 * * 5-7 sync; /sbin/shutdown -h +3 "server shutting down by cron job in 3 minutes time ..." Is a routine for us to shut down the server during weekend. |
Quote:
And I just have to ask: If you're shutting the system down for the weekend (presumably on Friday, i.e. day "5") why would you need to specify Saturday and Sunday. :) -- Rick |
You can check /var/log/cron to see if that cron job really run, plus run by which user
|
Hi,
I think I found the error already, the message is not completely type. So soory for sending the wrong output as well. Thank you. |
Quote:
|
This message is from the log :
sync; /sbin/shutdown -h +3 "server shutting down by cron job in 3 minut) Notice that the 3 minut is not completely type. Thank to all who try to help. |
All times are GMT -5. The time now is 06:03 AM. |