plumbum
plumbum copied to clipboard
How cand I redirect the stdout and stderr to a log file as well as screen(stdout)?
Not sure how can I do it. The "TEE" can only to stdout; piping to local["tee"]["a_log_file"] doesn't work either.
Thanks!
Doesn't ret_code, stdout, stderr = command & TEE
do both?
Hi,
it works, just a little different than "tee" in bash, I have to keep the stdout and stderr in memory, while bash's "tee" redirects to disk files directly.