http://qs1969.pair.com?node_id=1012505


in reply to capture STDOUT when some jerk opened STDOUT to /dev/tty

I'm not allowed to touch the script. That's completely forbidden.
Are you sure the "jerk" is the guy who wrote the code?

Fork the code of the script. That's the best I can recommend.