From: JD Harrington Date: 2007-03-27T12:23:54+09:00 Subject: Re: How do I implement the Unix 'tee' function for $stdout? Hi Larry, I realize this is *not* what you are asking, but in the interest of self-promotion (*gag*), here's a Ruby app I wrote that functions as a replacement for 'tee' http://www.awk-fu.com/software/mux/ Getting back on topic now, JD On Mar 26, 2007, at 5: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? > > -- > Posted via http://www.ruby-forum.com/. >