gabrielsousa has asked for the wisdom of the Perl Monks concerning the following question:
how to i get STDERR from this ?
open(SSH,"sshpass -p $pass ssh user\@$ip $cmd |") || die "$!\n";@result= <SSH>; chomp @result;
close SSH;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: getting STDERR from external command using OPEN
by kcott (Archbishop) on Nov 09, 2016 at 03:48 UTC | |
Re: getting STDERR from external command using OPEN (open2/open3/Capture::Tiny)
by Anonymous Monk on Nov 09, 2016 at 03:31 UTC | |
by gabrielsousa (Sexton) on Nov 09, 2016 at 11:07 UTC | |
Re: getting STDERR from external command using OPEN
by marioroy (Prior) on Nov 10, 2016 at 01:12 UTC |
Back to
Seekers of Perl Wisdom