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

Don't I WISH!! Unfortunately the OS I'm connecting to does not contain nohup. It's a busybox linux on an embedded device.

Replies are listed 'Best First'.
Re^3: Net::SSH2 exec timeout
by afoken (Chancellor) on Sep 09, 2011 at 05:28 UTC
    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". ;-)