From: nobu.nokada@... Date: 2003-02-28T19:49:24+09:00 Subject: Re: reading the output of a program "in real-time" Hi, At Fri, 28 Feb 2003 19:38:43 +0900, Laurent Sansonetti wrote: > Is there a way to read the output of a program "line by line", in > real-time ? You have to let the program recognize stdout as a tty. require 'pty' PTY.spawn("./plok") do |r, w| r.each do |line| puts("==> #{l}") end end -- Nobu Nakada