(The "1>2" ensures that what gets printed still goes to your main process's STDERR instead of STDOUT).open(STDERR,"|tee somefile 1>&2"); print STDERR "this goes to STDERR and somefile\n";
In reply to Re: duplicating STDERR to a logfile...
by jsegal
in thread duplicating STDERR to a logfile...
by cadphile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |