in reply to Re^2: Net::SSH::Perl and WGET
in thread Net::SSH::Perl and WGET

What if you add '-v' for verbosity and redirect stdout and stderr into a file on script server?
my ($out, $stderr3, $exit3,) = $ssh->cmd("/usr/local/bin/wget -v -c -n +p -r -nH --cut-dirs=1 --reject index.html* -P /var/tmp 'http://urlHOS +T/patch/126546-07/' >/var/tmp/download.log 2>&1");
What can you see in /var/tmp/download.log while the script hangs?

Replies are listed 'Best First'.
Re^4: Net::SSH::Perl and WGET
by Monkless (Acolyte) on Jan 15, 2015 at 15:23 UTC

    Again, thanks to all for the input.. I finally realized I was not properly handling my exit code, I was simply expecting the script to finish. Adding the following check now downloads the DIR and moves on to next step of script

    if ($exit3 == 0) { print "Download Completed!\n"; }