On Saturday 31 May 2008, Rob Biedenharn wrote:

> $stdout.sync = true; $stdout.flush
>
> The #sync setting of true means "unbuffered" (sync'd to the
> destination every time).  If you build up messages, you can call
> #flush on the IO yourself instead.
>
> print "hello "
> print "world"
> puts "!"
> STDOUT.flush

I don't think that would work. If I understand correctly what you mean, that 
should be put in the script which produces the output, not not in the one 
displaying it. But since the output I want to display is from a script written 
by the user, I can't do that.

Stefano