in reply to redirecting STDERR from shell commands
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';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Some things I would have never guessed...
by Rhose (Priest) on Sep 07, 2001 at 17:04 UTC | |
by seesik (Initiate) on Sep 07, 2001 at 17:33 UTC |