Computing.Net > Forums > Linux > Schedule Shutdown on Linux

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.

Schedule Shutdown on Linux

Reply to Message Icon

Name: lucas_odell
Date: July 25, 2006 at 01:22:25 Pacific
OS: clarkconnect
CPU/Ram: 128
Product: 400mhz
Comment:

I want to know how to schedule shutdown on my linuxserver at 00.00 every night. im using clarkconnect.

/lucas



Sponsored Link
Ads by Google

Response Number 1
Name: wollie
Date: July 26, 2006 at 01:05:55 Pacific
Reply:

Sorry, I probably can't see your issue.
shutdown -r now ? / reboot ?
use at-command for scheduling or crontab ?
Could you provide some more hints ?
Anything I didn' catch in your post?

cheers
wollie


0

Response Number 2
Name: ernie
Date: July 26, 2006 at 22:41:29 Pacific
Reply:

You can use cron to schedule the shutdown. Enter a command in crontab as follows:

'0 0 * * * shutdown -h now' (no quotes)

The above command directs cron to execute the command 'shutdown -h now' (shutdown - halt the system - now) at the '0' minute, on the '0' hour, all days of the month, all months of the year, all days of the week.

If you are familiar with vim or vi, you can do 'crontab -e' to edit the crontab file with the above command (I do not use vi here), or you can use the text editor of your choice.

On most Linux systems, only the root user has the authority to shutdown the system, so you will have to be logged on the server as the root user to set up the cron job.

HTH,

Ernie Registered Linux User 247790
ICQ 41060744


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: Schedule Shutdown on Linux

Running Window's Programs on Linux www.computing.net/answers/linux/running-windows-programs-on-linux/22831.html

oracle memory leak on linux www.computing.net/answers/linux/oracle-memory-leak-on-linux/11648.html

installing SoftWare on Linux www.computing.net/answers/linux/installing-software-on-linux/17580.html