LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2009, 07:28 AM   #1
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
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
 
Old 10-27-2009, 07:49 AM   #2
thegeek
Member
 
Registered: Oct 2009
Location: Amsterdam
Distribution: CentOS,Fedora,Puppy
Posts: 62

Rep: Reputation: 20
Rebooting should not alter the crontab at all, check your cron log for more info ( /var/log/cron probably )
 
Old 10-27-2009, 04:53 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Try:
30 15 * * * /sbin/reboot
cron's $PATH isn't set to much, so you may need to specify the /full/path/to/executable
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab job not executing.... mia_tech Linux - Newbie 6 08-31-2009 03:42 PM
Personal crontab does not run after reboot of RHEL5 server prevere Linux - Newbie 2 05-20-2008 12:02 PM
Crontab changes not permanent Nylex Linux - General 4 07-19-2007 08:08 PM
Run crontab job sunhui Linux - Software 2 05-16-2007 09:35 PM
crontab job Thulemanden Linux - Software 2 07-09-2006 07:57 AM


All times are GMT -5. The time now is 01:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration