[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] flush in the main process but not coprocess?
From: |
Andrew J. Schorr |
Subject: |
Re: [bug-gawk] flush in the main process but not coprocess? |
Date: |
Sun, 9 Dec 2012 14:15:38 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Dec 06, 2012 at 10:54:15AM -0600, Peng Yu wrote:
> But when the coprocess was written by somebody else, and I don't have
> control of, it is not an option to call flush. Is there a walk-around
> to this problem?
I haven't tried this myself, but this thread gives two good suggestions:
http://unix.stackexchange.com/questions/25372/turn-off-buffering-in-pipe
Try using "stdbuf" or "unbuffer" to run the coprocess (see the man pages
for those commands).
Regards,
Andy