in reply to Re: Need Help: Capture STDOUT without Redirecting
in thread Need Help: Capture STDOUT without Redirecting

I am stuck on not using IO:Tee. In my environment, it is considered unvalidated code. All code, including my test scripts, must go through a detailed review and documentation. Any code that I use must go through the same vigorious process. If I use IO:Tee, it will have to go through the same process. I think this would be more problem than it's worth at the moment.

Before test scripts are executed, I do start UNIX's "script" to capture the log. From my limited experience with "script", it seems that the log file does not get written to until the "script" performs an "exit". I suppose I could call "script" inside of a perl script. Would I have problems identifying which session is the original session and which is the "script" session?

MNJ

  • Comment on Re^2: Need Help: Capture STDOUT without Redirecting