in reply to Re^2: system() call mis-directs?
in thread system() call mis-directs?
You are running some tee processes that you should not need with that. Try something more like: (untested)
# no need to close STDERR or STDOUT first; reopening will do that impl +icitly open STDERR, '>>', $logpath.'/'.$logfile or die "redirect STDERR >> $logpath/$logfile: $!"; $| = 1; open STDOUT, '>>&=', \*STDERR or die "redirect STDOUT -> STDERR: $!"; $| = 1; print "\n\n", '-' x 45, "\n";
|
---|