From: Luc Heinrich Date: 2009-12-11T16:39:37+09:00 Subject: Re: Redirecting standard output On 11 déc. 2009, at 03:35, Robert Gleeson wrote: > $stdout = File.new '/path/to/file', 'w' > puts 'foobar' > $stdout = STDOUT > puts 'foobar' Assignment to $stdout is deprecated (at least according to pickaxe), using reopen is the right way to do it: $stdout.reopen(File.new("/path/to/file", "w")) -- Luc Heinrich - luc@honk-honk.com