Re: Automated Shutdown Script

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

 



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@xxxxxxxx
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@xxxxxxxxxxx>



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

  Powered by Linux