Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl with Net::SSH2, vshell and psexec

by shmem (Canon)
on Feb 10, 2014 at 07:14 UTC ( #1074199=note: print w/ replies, xml ) Need Help??


in reply to Perl with Net::SSH2, vshell and psexec

Running ssh on a terminal, both STDOUT and STDERR are going to your tty. According to Net::SSH2::Channel, the normal mode is to read STDERR separately. Try calling ext_data('merge') on your channel object.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'


Comment on Re: Perl with Net::SSH2, vshell and psexec
Re^2: Perl with Net::SSH2, vshell and psexec
by t_rex_joe (Acolyte) on Feb 10, 2014 at 14:40 UTC
    Thanks for the tip, however I used the "$chan->ext_data('merge');" in the script without any different results.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074199]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2014-12-27 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls