Run command and get its stdout, stderr separately in near real time like in a terminal
I am trying to find a way in Python to run other programs in such a way that:
I am trying to find a way in Python to run other programs in such a way that:
I need to do something like this post, but I need to create a subprocess that can be given input and give output many times. The accepted answer of that post has good code…