Monday, January 08, 2007

Howto shutdown Linux box automatically?

This blog moved to a new location, please visit us at http://ramble.m2m.at.

Do it once:
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:
/etc/init.d/atd start or rcatd start for SuSE
... and check your at queue:
atq
Do it regularly:
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 ...

No comments: