in reply to Re^6: Net::OpenSSH loosing lines ins reply
in thread Net::OpenSSH loosing lines ins reply

yes - I did. There is just a block of lines missing. Easy to find even in STDOUT as I added the line numbers.
  • Comment on Re^7: Net::OpenSSH loosing lines ins reply

Replies are listed 'Best First'.
Re^8: Net::OpenSSH loosing lines ins reply
by salva (Canon) on Jun 04, 2014 at 12:51 UTC
    Right, but can you actually show the differences to the rest of us. Specifically the differences between the two files filled by...
    foreach (@rawout) { print "$tmpcnt: ". $_; print TWO "$tmpcnt: ". $_; $tmpcnt++; }
      sniplet of STDOUT:
      1776: switchport mode trunk 1777: switchport trunk native vlan 1000 1778: switchport trunk allowed vlan 201,221-222 1779: spanning-tree port type edge trunk 1780: storm-control: interface Ethernet8/30 2995: 2996: interface Ethernet8/31 2997: 2998: interface Ethernet8/32 2999: 3000: interface Ethernet8/33 3001: 3002: interface Ethernet8/34 3003:

      but two. out contains ALL numbers...
        but can you use diff to visualize the differences, or even better, some tool as vbindiff.

        update: Include also the diff between ./two.out and the file generated when you use stdout_file to redirect the output to a file.