Automated Shutdown Script

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Fri Jul 2 15:40:21 UTC 2004


Am Fr, den 02.07.2004 schrieb Michael Marsh um 17:32:

> Does anyone know how to make fedora shut down automatically at a certain
> time of day with a bash script?

> Michael Marsh

As root run "crontab -e" and put in as content:

45 19 * * * /sbin/poweroff

Instead of poweroff you may use "/sbin/shutdown -h now" or give your
users 5 minutes to finish their work.

So the host will poweroff each day - if it is running - at 7:45PM. More
about the format of crontab lines and the date/time setting in "man 5
crontab".

Alexander

-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) on Athlon CPU kernel 2.6.6-1.435.2.1 
Serendipity 17:37:16 up 21:01, 8 users, 0.08, 0.20, 0.26 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20040702/d6276a42/attachment-0002.bin 


More information about the users mailing list