in reply to Redirecting STDOUT to a FileHandle ?

Try looking through Restoring STDOUT and STDERR after having redirected them to files, and pay special attention to the solution

--isotope
http://www.skylab.org/~isotope/
  • Comment on Re: Redirecting STDOUT to a FileHandle ?