[ale] Cron for re-boot (correction)

sangell at nan.net sangell at nan.net
Fri Mar 1 07:29:47 EST 2002



All entries have the 3, I just forgot it in my examples:

*  3  15  *  *


\_\_\_\_\_\_\_\_\_\_\_/_/_/_/_/_/_/_/_/_/_/
\_    Steve Angell,  MCSE, CCNA           _/
\_    MIS Operations Manager               _/
\_    TSYS Debt Management             _/
\_    Norcross, GA                                   _/
\_    Phone 770-409-5570                    _/
\_    Fax      770-416-1752                   _/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


                                                                                                                   
                    sangell at nan.ne                                                                                 
                    t                    To:     ale at ale.org                                                       
                                         cc:                                                                       
                    03/01/2002           Subject:     [ale] Cron for re-boot                                       
                    07:17 AM                                                                                       
                                                                                                                   
                                                                                                                   




I am trying to set a cron job to reboot a server on the 15th of each month
at 3:00am. I have tried:

* * 15 * * exec /sbin/shutdown -r now
and
* * 15 * * /sbin/shutdown -r now
and
* * 15 * * shutdown -r now

all in /var/spool/cron/root

None work. I even tried using webmin to add the job but no success. Now the
funny thing is in while in webmin, I click "Run Now"  and the system
reboots with the "exec /sbin/shutdown -r now" but no matter how I set the
time for the job to run it will not restart via cron. I do have 3 other
jobs that run every night which are successful. I am at a loss. Any ideas?


\_\_\_\_\_\_\_\_\_\_\_/_/_/_/_/_/_/_/_/_/_/
\_    Steve Angell,  MCSE, CCNA           _/
\_    MIS Operations Manager               _/
\_    TSYS Debt Management             _/
\_    Norcross, GA                                   _/
\_    Phone 770-409-5570                    _/
\_    Fax      770-416-1752                   _/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should
be
sent to listmaster at ale dot org.






---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list