Rick Tessner
12/1/2006 3:38:00 PM
Hi all,
Adding $stdout.sync = true; $stderr.sync = true should solve the problem
of stdout and stderr being output of of sync.
See in-line edit below.
On Fri, 2006-01-12 at 16:10 +0900, Eric Hodel wrote:
> $ ruby
> outfile = File.open("output.txt", "w")
> $stdout.reopen outfile
> $stderr.reopen outfile
$stdout.sync = true
$stderr.sync = true
> 0.upto 10 do |v| (v%2==0 ? STDOUT : STDERR).puts v; end
--
Rick
rick.tessner@gmail.com