Following: live output from subprocess command.
I would like to run a process with subprocess.Popen()
and get both live STDOUT and STDERR. The problem is that if I do readline
on one of them, it will block, and I won't be able to readline
the other. I also don't want to unite them to one PIPE.
Is there a simple way to do it without using 2 threads per process?