Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
auto-shutdown linux at a certain time
Name: structure Date: November 13, 2000 at 05:16:15 Pacific
Comment:
Greetz!
I like to shutdown my RH5.2 every day @ 23:00hr. How should i acclompish this? Do I use cron for that? If so, can someone give me some hints on that?
Also, i like to msg my ftp users that the server will shut down. I know how to do that, but how do i put that into my cron?
Name: ML Date: November 13, 2000 at 12:07:49 Pacific
Reply:
Yes, you should use cron.
Read "man crontab" for info on how it works.
You can run any executable in a cron job, so simply calling a shell script that sends the message, waits an adequate delay, and then a "shutdown -h now" call in a script should do it...
If you don't know how to make the shell script... Well, that's another topic, really.
0
Response Number 2
Name: structure Date: November 14, 2000 at 10:19:45 Pacific
Reply:
Writing a script isn;t that hard, so that won't be a problem. crontab: I will do that, thank you for your help.
Summary: we are running 2 linux server in our network server1 is configured to shutdown automatically at a predefine time is there any way to shutdown server2 automatically only when server1 is shutting down....
Summary: I want to use the CRON daemon in Linux to set off an alarm at a certain time each day, every day. If I'm right, I can put the name of the alarm program in the file "cron.hourly", but doing this will ...