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

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.

Replies are listed 'Best First'.
Re^11: Net::OpenSSH loosing lines ins reply
by Andy16 (Acolyte) on Jun 04, 2014 at 13:19 UTC
    Yes, Salva, I can and I did.
    BUT:
    the file is 3500 lines in size and also contains stuff I'll not post here... :-)

    I can send it to you as an eMail - but don't see the value.
    The files are identical, besides the fact that STDOUT has that section missing.

    thanks for your help!!!

    update: /tmp/ssh_del_$$.txt is COMPLETE
    two.out is complete
    STDOUT misses a block of lines
      update: /tmp/ssh_del_$$.txt is COMPLETE

      Ah, from your post Re^2: Net::OpenSSH loosing lines ins reply, I understood "/tmp/ssh_del_$$.txt" was also missing some lines even if the file size was the same!

      if STDOUT were completely empty, I would suspect of Sys::SigAction doing something funny to STDOUT, but you say that the line numbers are there... I can not imagine how that could happen. Is like if $_ were changing from one call to the next?

      You can try reducing the script, first removing Net::OpenSSH from it. You already have the output on the /tmp/ssh_del_$$.txt files, so you don't need to retrieve them again.

        Hi Salva,
        I still did not manage to explain the situation:
        /tmp/ssh_del_$$.txt is complete (no line numbers)
        two.out is complete (incl line numbers)
        STDOUT misses a block of lines (see above)

        STDOUT is missing the lines in total - numbers and content.

        I'll continue to cut down the script to the needed fragments for reproducing it...

        not yet giving up...