Automated Shutdown Script

Mike azmr at earthlink.net
Fri Jul 2 15:42:17 UTC 2004


On Fri, 2 Jul 2004, Michael Marsh wrote:

> Does anyone know how to make fedora shut down automatically at a certain
> time of day with a bash script?
> 
> Thanks in advance
> Michael Marsh
> m at mmm7.com

Here's one way.  Say you want to shutdown at 9:00 PM every day.  Do the 
following as root:

   # crontab -e
   0 21 * * * /sbin/shutdown -h now

Also check out "man 5 crontab" for more info...

-- Mike






More information about the fedora-list mailing list