in reply to Re: Net::SSH2 exec timeout
in thread Net::SSH2 exec timeout

I tried the disconnect. Unfortunately the code does not continue past the channel exec. If you throw in the $ssh->disconnect, it never even gets there.

blocking(0) seems to have no effect. I had actually tried that, forgot to mention it.

OpenSSH: Yeah, thought of that as well but the code has to be usable from multiple different systems.

Replies are listed 'Best First'.
Re^3: Net::SSH2 exec timeout
by salva (Canon) on Sep 09, 2011 at 07:06 UTC
    would your busydos shell accept the following command?
    (sleep 5 && /sbin/fwupdate -m) >/dev/null 2>&1 </dev/null &
    That would execute the command after 5 seconds, time enough for the SSH session to be closed.