Inquiry:How to make crontab job permanent even after server reboot?
Dear All
Please be informed that I have an application that needs my Linux server to be rebooted automatically at pre-specified times . To this end , I set its crontab as the followings : 30 15 * * * reboot But after the first server reboot , the crontab job will be lost and the other subsequent reboots will not get through . Can you please do me favor and let me know how can I make it as permanent even after server reboot ? Let me thank you in advance |
Rebooting should not alter the crontab at all, check your cron log for more info ( /var/log/cron probably )
|
Try:
30 15 * * * /sbin/reboot cron's $PATH isn't set to much, so you may need to specify the /full/path/to/executable |
All times are GMT -5. The time now is 11:40 PM. |