Computing.Net > Forums > Linux > auto shutdown

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

Reply to Message Icon

Name: khalidkhan1
Date: February 28, 2008 at 22:31:16 Pacific
OS: RedHat Ent linux5
CPU/Ram: 1.8C2D/1GB
Product: dell Optiplex 320
Comment:

Dear All,
Is there any way to configure my linux machine to shut down automaticaly,which time I need?
If yes how,tell me please?
khalid khan



Sponsored Link
Ads by Google

Response Number 1
Name: wollie
Date: February 29, 2008 at 01:35:30 Pacific
Reply:

hi,

schedule it e.g. via cron

10 23 * * 6 shutdown -h now

wollie


0

Response Number 2
Name: ernie
Date: February 29, 2008 at 02:09:59 Pacific
Reply:

A simpler way is to add the appropriate shutdown command to the /etc/profile file (as root):

Open a terminal window and su to root:

[user@localhost ~]$ su
Password: (enter root password here)

This example will open /etc/profile in the kate text editor:

[root@localhost user] # kate /etc/profile

Add the following command to the end of the file:

shutdown -h hh:mm

Replace hh:mm with the time at which you want the computer to shutdown automatically each day

The -h option tells shutdown to turn the
computer off (halt).

For more information on the shutdown
command open a terminal window and enter:

man shutdown

Remember, the man command is your friend.
With it you can get information on nearly
any command available in your Linux system.

HTH,

Ernie Registered Linux User 247790
ICQ 41060744


0

Response Number 3
Name: khalidkhan1
Date: February 29, 2008 at 04:12:28 Pacific
Reply:

thanks
Wollie and ernie.


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

Auto shutdown www.computing.net/answers/linux/auto-shutdown-/7746.html

auto-shutdown linux at a certain time www.computing.net/answers/linux/autoshutdown-linux-at-a-certain-time/1653.html

How to make linux auto-shutdown www.computing.net/answers/linux/how-to-make-linux-autoshutdown/16945.html