LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Inquiry:How to make crontab job permanent even after server reboot? (https://www.linuxquestions.org/questions/linux-newbie-8/inquiry-how-to-make-crontab-job-permanent-even-after-server-reboot-764762/)

hadimotamedi 10-27-2009 06:28 AM

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

thegeek 10-27-2009 06:49 AM

Rebooting should not alter the crontab at all, check your cron log for more info ( /var/log/cron probably )

tredegar 10-27-2009 03:53 PM

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.