How can I redirect the process output (not the actual output) to a .log file in a perl script? I have a script which runs to compile some files recurssively. Instead of writing out the process to the screen, i need to redirect it automatically to a .log file or something, which holds the imformation of what has happened during the whole process of recusrssive compiling of the files. Please note that I am not trying redirect the actual output (which is the compiled files or the results of the compilation) to the ,log file. In essence the ,log or the out file should have something like:
Script started...
command is script.pl <file(s)>....
Compiling...
Error:.... (if any)
resuming compiling...
done.
At present the above output is printed to the screen. Please advise and thanx for the help.
In reply to Process output redirecting by ginju
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |