Computing.Net > Forums > Linux > auto-shutdown linux at a certain time

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

Reply to Message Icon

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?



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: auto-shutdown linux at a certain time

auto shutdown linux server www.computing.net/answers/linux/auto-shutdown-linux-server/13915.html

Auto rebooting server nightly www.computing.net/answers/linux/auto-rebooting-server-nightly/15962.html

Cron www.computing.net/answers/linux/cron/3161.html