LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06: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, 06: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, 03:53 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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



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 02:42 PM
Personal crontab does not run after reboot of RHEL5 server prevere Linux - Newbie 2 05-20-2008 11:02 AM
Crontab changes not permanent Nylex Linux - General 4 07-19-2007 07:08 PM
Run crontab job sunhui Linux - Software 2 05-16-2007 08:35 PM
crontab job Thulemanden Linux - Software 2 07-09-2006 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:48 AM.

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
Open Source Consulting | Domain Registration