update: I am thinking that this is not going to work properly either, because the tee work is done by a subprocess and so there is a race condition.use File::Tee qw(tee); open my $LOGFILE, '>>', $logFileName or die $!; tee STDOUT, '>>&', $LOGFILE or die $!; ...
In this case, IO::Tee that uses a tied file handle to duplicate the output may be a better option.
In reply to Re: tee and log files
by salva
in thread tee and log files
by not-a-monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |