[ale] Cron for re-boot

James P. Kinney III jkinney at localnetsolutions.com
Fri Mar 1 07:37:22 EST 2002


I think it's croaking on the flags to shutdown. Try putting it all in
quotes. Or, make a shell script that calls the command and call that
from cron.

On Fri, 2002-03-01 at 07:17, sangell at nan.net wrote:
> 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.
> 
-- 
James P. Kinney III   \Changing the mobile computing world/
President and COO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 This is a digitally signed message part




More information about the Ale mailing list