in reply to Re: Pipe Input delayed
in thread Pipe Input delayed

Thanks ikegami. I disabled buffering on my perl script with
select((select(STDOUT), $| = 1)[0]);

Replies are listed 'Best First'.
Re^3: Pipe Input delayed
by jwkrahn (Abbot) on Jun 28, 2011 at 21:02 UTC

    That doesn't disable buffering, it just enables auto-flush on the selected filehandle.

      Same thing.
      Ah! Thanks for making it clear
Re^3: Pipe Input delayed
by ikegami (Patriarch) on Jun 28, 2011 at 21:09 UTC

    Telling Perl not to buffer STDOUT is not useful since the problem is that the java program is buffering its output.

    Update: Ah! Read it backwards! It's when using a Perl child that it didn't work.