I have this code:
pprocess = subprocess.Popen('PROGRAM', stdout=subprocess.PIPE)
while True:
output = pprocess.stdout.readline()
print 'output = ', output
But the output is not being printed using the python code, but instead it is being printed on the console and it appears to be printed directly from the process.
Does anyone came across this issue?
PROGRAMreturning when you call it IN TERMINAL?popenas well into the while loop.