From: Omar Campos Date: 2009-12-14T12:12:50+09:00 Subject: Re: Redirecting standard output I don't know many of the technical aspects like subprocesses, but what I did was this: At the beginning of my program: $stderr2 = $stderr.clone $stderr.reopen('tmp2.dat') At the end: $stderr.reopen($stderr2) exit Worked like a charm! -- Posted via http://www.ruby-forum.com/.