From: ts Date: 2003-04-05T21:09:35+09:00 Subject: Re: reading from $stdout ??? >>>>> "B" == Brian Candler writes: B> $defout = File.open("log.txt","w") B> puts "hello" # goes to log file $stdout = File.open("log.txt","w") $stdout.sync = true $defout = $stderr = $stdout puts "hello" system("ls") use #dup if you want to restore it after, you have examples in ruby-talk Guy Decoux