You also should include the used packages so we know exactly what you use. I personally have no idea from where do you get the tee and TraceLog functions and a quick search on CPAN, perldoc and google didn't got any specific results.
I personally would reroute STDOUT and STDERR directly to the log file using the shell command, i.e. inside the system call with &>logfile. In general this task looks like a shell script would be better suited for it than a Perl program.
In reply to Re: Get Return Value from Unix
by mscharrer
in thread Get Return Value from Unix
by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |