How to replicate tee behavior in python when using subprocess?
- by Sorin Sbarnea
I'm looking for a Python solution that will allow me to save the output of a command in a file without hiding it from the console.
Requirements
Python solution (not calling tee, it is not available under Windows)
to work when calling external programs (subprocess)
to work for both stderr and stdout