Computing.Net > Forums > Linux > auto shutdown

auto shutdown

Reply to Message Icon

Original Message
Name: khalidkhan1
Date: February 28, 2008 at 22:31:16 Pacific
Subject: auto shutdown
OS: RedHat Ent linux5
CPU/Ram: 1.8C2D/1GB
Model/Manufacturer: 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


Report Offensive Message For Removal


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

hi,

schedule it e.g. via cron

10 23 * * 6 shutdown -h now

wollie


Report Offensive Follow Up For Removal

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

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


Report Offensive Follow Up For Removal

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

thanks
Wollie and ernie.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: auto shutdown

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 6 Days.
Discuss in The Lounge