From: James Edward Gray II Date: 2007-03-27T08:39:07+09:00 Subject: Re: How do I implement the Unix 'tee' function for $stdout? On Mar 26, 2007, at 4:44 PM, Larry Fast wrote: > I already discovered that I can redirect $stdout just by pointing > it at > a new file handle. But what I really want is to have the output > continue to STDOUT but ALSO go into my logging file along with a > pile of > trace data. This is very similar to the Unix program 'tee' > > Any suggestions? Sure. I showed how to replace $stdout in a post earlier today: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/245389 Just make a TeeIO object and stick it in that variable. Lets us know if you are still stuck and we will give more help. James Edward Gray II