LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   Automatic system shutdown (http://www.linuxquestions.org/questions/suse-novell-60/automatic-system-shutdown-451768/)

chobin 06-05-2006 08:10 AM

Automatic system shutdown
 
Hi friends,
I need to schedule a reboot of my linux system at a certain time. I tried to this using a cron job:
Code:

00 0 * * * /sbin/shutdown -r now
but a message say that only root can use shutdown command. How can I get root privileges?
Thanks

zaichik 06-05-2006 08:35 AM

su to root, and add the the cron job with
Code:

crontab -e

chobin 06-05-2006 08:51 AM

Quote:

Originally Posted by zaichik
su to root, and add the the cron job with
Code:

crontab -e

you are right zaichik! It was very simple.... I didn't remember that I can use root crontab too.
Thank you very much :)


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