From: Brian Candler Date: 2003-02-27T23:14:36+09:00 Subject: Re: Redirecting/Logging output On Thu, Feb 27, 2003 at 10:59:50PM +0900, Robert Klemme wrote: > $logfile = File.new 'log.txt','w' > $logger = SplitOutput.new($stdout, $logfile) > > $logger.printf "test" You can't use it as $defout unless you add a 'write' method as well: $defout = $logger >> $> must have write method, SplitOutput given (TypeError) Regards, Brian.