Howto shutdown Linux box automatically?

a single one-time shutdown:

e.g. shutdown your linux box at 7:30 January 10th:

at 7:30 jan 10
> shutdown -h now
> CTRL-D

… make sure the at daemon is running e.g.:

/etc/init.d/atd start

… or for SuSE:

rcatd start

… and check your at queue:

atq

scheduled shutdowns at certain intervals:

e.g. kill your computer every day at midnight (to make sure you get enough sleep):

crontab -e -u root
> 0 0 * * * /sbin/shutdown -h now

… save and exit …

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Flattr this!

Leave a Reply

Your email address will not be published. Required fields are marked *