From: Robert Gleeson Date: 2009-12-11T11:35:29+09:00 Subject: Re: Redirecting standard output Omar Campos wrote: > Thanks, that's exactly what I was looking for! Nice gem by the way. I > tried to "gem install" it, but I got a weird error message, don't > remember what it was. No need for a gem. $stdout = File.new '/path/to/file', 'w' puts 'foobar' $stdout = STDOUT puts 'foobar' -- Posted via http://www.ruby-forum.com/.