Jun-25-2018, 09:02 PM
First, I'd open a pipe [os.pipe()], then use subprocess.Popen's stdin/stdout parameters as the read/write handles of that pipe. That way, (hopefully) the first program pipes it's output into the second program without ever touching python at all.