Reading Stdout From One Program In Another Program
I have a problem concerning the reading of the stdout in python. I have to explain a bit what I am trying to do. I have a Python program (foo); this calls a second python program (
Solution 1:
Er, bar.stdout.readline()
? Going all the way to file descriptors is rarely necessary.
Solution 2:
How about Popen.communicate? This will also let you send input to the process if you want to.
Post a Comment for "Reading Stdout From One Program In Another Program"