in reply to Re: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works
in thread Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works
For the issue where bash was printing error message but my perl script wasn’t, I figured out the mistake I was committing. Instead of
my ($stdout) = $ssh->capture2("~/release/$wrapper");I should have used
my ($stdout, $errput) = $ssh->capture2("~/release/$wrapper");I was only checking stdout earlier :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl (Net::SSH::Perl) script sometimes hangs while running remote command but shell script works
by Technext (Acolyte) on Jul 01, 2015 at 18:33 UTC |