I use a crontab entry under root to do this ...

login as root

crontab -e

add the following line

5  1  *  *  *  /sbin/shutdown -r now

save the file and exit

this reboots at 1:05 am every night ...

hope this helps - btw - root does not need to be logged in for this to work
...

dave

At 08:47 PM 5/13/98 -0400, you wrote:
><newbie hat fully in place here>
>
>Ok, I see cron.daily, cron.weekly, etc.  How do I schedule for the machine
>to shutdown and perform a reboot once a day?  Do I put a script in
>cron.daily?  I see one there (or in one of them) so I'll copy the format.
>Just add 'shutdown -r now' I presume?  I have no Xwindows on this system
>(for space reasons).
>
>How can I find out what time cron.daily will run?  Does it run exactly at
>midnight?
>
>Please excuse the newbie attire, I'll try to find more suitable clothing in
>the future.....
>
>John Herrbach, Lansing, MI
>[EMAIL PROTECTED] (preferred)
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>
>
>-- 
>  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
>         To unsubscribe: mail [EMAIL PROTECTED] with 
>                       "unsubscribe" as the Subject.
>
>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to