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

Thanks for your reply. Yes shutdown with -r option works

However, looks like on Fedora-18, there is no option to configure the time in seconds.

If i try shutdown -t 10 -r, it still reboots after the default time interval of 10secs as specified in shutdown man page.

Do you have any recommendations on how to configure the shutdown time in seconds ?

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

      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.

        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.