Scheduled shutdown

Asked by Rajinder Sandhu, Bangalore

How to configure scheduled system shutdown at 0800 hrs ?
I have Kcron and atd running
please help me to configure either of them so that it can be shutdown at predefined time daily

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu cron Edit question
Assignee:
No assignee Edit question
Solved by:
Rajinder Sandhu, Bangalore
Solved:
Last query:
Last reply:
Revision history for this message
Rajinder Sandhu, Bangalore (sandy744-breakthru) said :
#1

using ubuntu 8.04

Revision history for this message
Bhavani Shankar (bhavi) said :
#2

Hello

Open a terminal and enter a full root session:

sudo su -

Then type

crontab -e

and add a line like the following:

0 8 * * * /sbin/shutdown -h now

Read the manual pages for crontab and for shutdown:

man crontab
man 5 crontab
man shutdown

Refer this link too

http://ubuntuforums.org/archive/index.php/t-361844.html

Regards

Revision history for this message
Rajinder Sandhu, Bangalore (sandy744-breakthru) said :
#3

thanks
the link you gave helped me to solve the problem
through >at commands

Thanks again
Bye