Log all input and output

Nov 8, 2022
33
0
How can I log all input and output (including error messages) into a file.

I hava a longrunner (batch script) and I wout like to "save" the whole input/output.

Thanks - Michael
 
You can't "log" output per se. You can however send output to a file while still seeing it in the console. Read about the TEE command.
 

Similar threads