http://www.perlmonks.org?node_id=1074199


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

Replies are listed 'Best First'.
Re^2: Perl with Net::SSH2, vshell and psexec
by t_rex_joe (Sexton) 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.