How to? Logging Output from External Programs

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
I am evaluating Take Command for audit logging on a couple of servers where storage arrays are managed using commandline utilities.

Using the Log /A command, I get everything in the command window recorded to a text file except the output from these commandline utilities.

If I execute the commandline utility and add "| tee C:\test.txt" then I do get the output from the commandline utility on the screen and in the C:\test.txt file.

Unfortunately, it requires that the user add this to each command issued. Is there any way of turning this "tee" operation on permanently for all commands issued in the window?

Thanks!

-TimG
 
#5
Could someone give me an example for redirecting the output with PRE_EXEC? Thanks.