The stupid question is the question not asked | |
PerlMonks |
Re: assign open2 output to variableby BrowserUk (Patriarch) |
on Mar 28, 2014 at 16:58 UTC ( [id://1080114]=note: print w/replies, xml ) | Need Help?? |
open2 only captures output from the controlled programs stdout; the error message is being output to its stderr. Try: my $command = 'plink -ssh -pw password_here username_here@host_name_here -batch exit 2>&1'; With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|