Paul Brannan <paul / atdesk.com> writes:

>         str = i.read(512)
>         write_map[i].write(str)

> 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

I'd use gets and puts instead of the more primitive read and write. Using gets and puts, I get the lines as they are being outputted. Ruby 1.6.5.

YS.