http://qs321.pair.com?node_id=661539


in reply to Redirect to STDOUT and file

I had a similar problem earlier in the year. See How to log all output from a program?