£okì has asked for the wisdom of the Perl Monks concerning the following question:
If I run ANY other command that does not cause a session timeout, it works just fine. However, if I do this, it just hangs. Is there any way people can think of putting a timeout on this or just have it just go off to neverneverland? I tried using threads::shared but I couldn't seem to pass the reference to $ssh on to my thread.$ssh->scp_put($firmware[$antenna_type],'/tmp/fwupdate.bin'); print "Upgrading firmware, this will take about 3 minutes.\n"; my $chan = $ssh->channel(); $chan->exec("/sbin/fwupdate -m\n"); $chan->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH2 exec timeout
by BrowserUk (Patriarch) on Sep 08, 2011 at 04:02 UTC | |
by £okì (Scribe) on Sep 08, 2011 at 22:17 UTC | |
by BrowserUk (Patriarch) on Sep 08, 2011 at 22:32 UTC | |
by £okì (Scribe) on Sep 08, 2011 at 22:48 UTC | |
by BrowserUk (Patriarch) on Sep 08, 2011 at 23:12 UTC | |
| |
|
Re: Net::SSH2 exec timeout
by salva (Canon) on Sep 08, 2011 at 07:31 UTC | |
by £okì (Scribe) on Sep 08, 2011 at 22:20 UTC | |
by salva (Canon) on Sep 09, 2011 at 07:06 UTC | |
|
Re: Net::SSH2 exec timeout
by zentara (Cardinal) on Sep 08, 2011 at 10:38 UTC | |
by £okì (Scribe) on Sep 08, 2011 at 22:23 UTC | |
by afoken (Chancellor) on Sep 09, 2011 at 05:28 UTC |