Shutdown would not be an option
The reboot command has no option for a delay, but there is a reboot option for the shutdown command, which also has a delay option.
shutdown -t 10 -r
will start a reboot after a 10 second delay. That should be plenty of time for the SSH session to end and the connection to close.
In reply to Re^3: Net-SSH-Expect & Fedora-18
by RonW
in thread Net-SSH-Expect & Fedora-18
by hardy004
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |