I have to capture STDOUT from a perl script created by someone long since gone at $work. This individual decided to open( STDOUT, ">/dev/tty" ), so no matter what I do, output goes to my terminal. I've tried subshells, su - -c, Perl wrappers with IPC::Open3...
I'm not allowed to touch the script. That's completely forbidden.
Is there some way to capture the output and get it to stop spewing its text to my terminal? I'm concurrently looking for ways to send the terminal's STDOUT somewhere else...
In reply to capture STDOUT when some jerk opened STDOUT to /dev/tty by Tommy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |