Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 scrutinizing the Monastery: (7)
As of 2014-11-24 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (137 votes), past polls