Hi,

At Tue, 29 Jan 2002 01:12:02 +0900,
Paul Brannan <paul / atdesk.com> wrote:

    $>.sync = true	# or $defout.sync = true
>   loop do
>     puts "This is a test."
>     sleep 0.01
>   end
(snip)
> The result is that I wait about half a second, get a screenful of data,
> wait another half a second, get a screenful of data etc.  I would much
> prefer that the data be line-buffered.  The idea is that I would like to
> talk to an external process and log that process's data to a file, but
> I would like to be able to tail -f that file.

Since pipe isn't a tty, libc buffers STDOUT by default.

-- 
Nobu Nakada