ginju has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Process output redirecting
by Chmrr (Vicar) on Apr 23, 2001 at 02:52 UTC | |
|
Re: Process output redirecting
by BMaximus (Chaplain) on Apr 23, 2001 at 03:19 UTC | |
by mr.nick (Chaplain) on Apr 23, 2001 at 04:38 UTC | |
by tilly (Archbishop) on Apr 23, 2001 at 06:54 UTC | |
|
Re: Process output redirecting
by buckaduck (Chaplain) on Apr 23, 2001 at 12:14 UTC |