Re: Automated Shutdown Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux