Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
June 3, 2005, 10:21 pm
rate this thread
I am writing a perl script that does do a bunch of admin stuff.
What I need help with is this (I have done it in the past, I just can
not remember it now !)
I need to capture everything that this script does.
For example if it prints something to the screen, I need that to be
dumped into a file at the same time. So we are writing in 2 places.
1) To the screen 2) A file that acts as our log file.
Please keep in mind that I need to do this from inside the perl script.
I do not intend to do it this way " myScript.pl > log& ". A long time
ago I did that and put one line after the magic line and it took care
of it for me, it had something to do with |tee.
I just can not remember it and I can not figure it out.
Any help is greatly appreciated.
Thanks in advance,