Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-04-2009, 01:53 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Reboot Lunix fedora core 3

Hi every one

I like to reboot my server every day
when I type
crontab -l

it give me :

59 04 * * * /root/

my is:

but it doesn't work with me ?
any help

thank u all
Old 03-04-2009, 02:28 AM   #2
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled

But is this job run as root? If not then you will need to give user the permissions to run the reboot command.

Have you looked in /var/log/cron to confirm that your script did not run?
Old 03-04-2009, 05:33 AM   #3
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos
Posts: 276

Rep: Reputation: 54
make sure that the cron job is for root. So su - (enter root password), then
# crontab -e

add your line

59 04 * * * /root/

save the crontab file

Test to see it worked by "crontab -l" - this will list the crontab file

and make sure that your file has the _full_ pathname to reboot as described above, for example /sbin/reboot

Check to see that it has worked by looking at the /var/log directory. Good luck.


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
Setup Fedora core 3 & Redhat 7.2 software development environment under Fedora core 5 powah Fedora 1 06-16-2006 11:25 AM
Rhythmbox on Fedora Core 3 causes reboot! SolidSnakeX28 Linux - Software 1 05-28-2005 09:47 PM
Fedora Core 3 shutdown and reboot max_232 Linux - Laptop and Netbook 3 03-29-2005 09:35 AM
Mysterious reboot Fedora Core 2 install atkdabomb Fedora - Installation 1 10-26-2004 03:02 PM
After installation of Fedora Core I and reboot mouse and keyboard will not work wheckel Fedora 3 03-03-2004 11:54 AM > Forums > Linux Forums > Linux - Newbie

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

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