I have a bash script called update that does up2date followed by a shutdown.  
The intent is to be able to update the kernel in the middle of the night when 
there is no activity on this penguin (obviously RedHat) and the users won't be 
impacted.

#!/bin/bash
up2date --update
shutdown -r now

If I do update from a terminal everything proceeds as expected but if I 
schedule update thru cron the up2date works but the shutdown never happens.  Is 
there a restriction on the shutdown command?  What might be the problem?  I put 
the entry in root's crontab.
-- 
Bill Dodge
email: [EMAIL PROTECTED]
Phone: (703)627-2455 

"If you don't know where you are going, any road will take you there."
Lewis Carroll
"If you don't know where you are, a map won't help" Unknown 





----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to