in reply to Net::SSH2 exec timeout

Maybe try nohup in the exec? See Re^7: A little demo for Net::SSH2

You can google for nohup Net::SSH2 for more ideas.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Net::SSH2 exec timeout
by £okì (Scribe) on Sep 08, 2011 at 22:23 UTC
    Don't I WISH!! Unfortunately the OS I'm connecting to does not contain nohup. It's a busybox linux on an embedded device.
      Unfortunately the OS I'm connecting to does not contain nohup. It's a busybox linux on an embedded device.

      You can implement nohup as a shell script. See src/nohup.sh in ftp://ftp.slackware.at/slackware-3.3/source/a/sh_utils/sh-utils-1.16.tar.gz and the resulting usr/bin/nohup in ftp://ftp.slackware.at/slackware-3.3/slakware/a8/sh_utils.tgz. Reduced to the bare minimum, you just need a shell that implements the trap and exec commands. Having nice is a nice extra, but it is not strictly required; and even cat and [ (test) are not needed if you make sure you always redirect STDOUT and STDERR when invoking the nohup script.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)