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

I'm surprised to hear that.

I've used several Linux distros over the years. -t has always been the way to specify a delay for the shutdown command.

See http://linux.about.com/od/commands/l/blcmdl8_shutdow.htm

Replies are listed 'Best First'.
Re^6: Net-SSH-Expect & Fedora-18
by hardy004 (Novice) on Jul 02, 2014 at 22:18 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.