in reply to Re^5: Net-SSH-Expect & Fedora-18
in thread Net-SSH-Expect & Fedora-18

Hi Thanks. Below is the message i get after issues the shutdown command.

shutdown -t 5 -r

Broadcast message from ---- (Wed 2014-07-02 15:11:32 PDT):

The system is going down for reboot at Wed 2014-07-02 15:12:33 PDT

As you see, there is a default delay of 1min added before shutdown is initiated & this stays same no matter what -t option we specify.

Replies are listed 'Best First'.
Re^7: Net-SSH-Expect & Fedora-18
by RonW (Parson) on Jul 02, 2014 at 22:52 UTC

    Apparently, the -t option gets silently ignored. After some searching, what little I found specific to Fedora 18, there was no mention of the -t option, though some of the examples were shutdown -r now. But you seem to need a delay, so this might not be useful to you.