Automated Shutdown Script
jludwig
wralphie at comcast.net
Fri Jul 2 15:43:03 UTC 2004
On Fri, 2004-07-02 at 11:32, 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
I have done this for my system.
Make a cron that shuts system down.
examples;
59 23 * * * shutdown -h 0 # shut system down
0 19 * * * ifconfig eth0 down # turn off firewall after work hours
>From man 5 crontab
The time and date fields are:
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
A field may be an asterisk (*), which always stands for
‘‘first-last’’.
--
jludwig <wralphie at comcast.net>
More information about the users
mailing list