I believe you can simply close and re-open STDERR like so:
HTHclose(STDERR); open(STDERR,">mylogfile.log"); print STDERR 'this goes to my log file now';
In reply to Re: redirecting STDERR from shell commands
by AidanLee
in thread redirecting STDERR from shell commands
by pike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |