|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Answer: How can I tell at run time that my script is writing to STDERR? |
| ( #207962=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > debugging > How can I tell at run time that my script is writing to STDERR? contributed by .tom.
What you can do to prevent anything from beeing to STDERR is close the file descriptor :
But any entity that tries to write to STDERR will fail doing that, so you should also reopen STDERR to /dev/null to avoid that.
|
|
||||||||||||||||||