in reply to ssh connection lost during script running when box rebooted and script falls out...
The shutdown command usually allows you to schedule the shutdown. Read the man page. On a typical Linux system, you can get away with "shutdown -r +5" to shut down in 5 minutes. During that five minutes, you can cancel the shutdown command with "shutdown -c".
Alexander
|
|---|