From: nobuyoshi nakada Date: 2005-10-14T11:34:58+09:00 Subject: Re: Buffering problems Hi, At Fri, 14 Oct 2005 06:40:05 +0900, Joe Van Dyk wrote in [ruby-talk:160499]: > $stdout.sync = true > $stderr.sync = true > $stdout.reopen File.open(some_log_file, "w") > $stderr.reopen File.open(some_log_file, "w") > > exec 'program' IO#sync flag is only for current process. > Standard out and error are being redirected to the log file, but they > are being buffered. > > Any ideas on why that might be? One way is to let the 'program' not to buffer its output. Another way is to use pty. -- Nobu Nakada