programme call with popen
schleipp at transaction.de
Wed Aug 29 10:46:26 CEST 2001
I use the popen2 function to initialize a variable with the output of
a programme. If I use the interactive mode, python seems to start
another process - it appears the programme output, which is put on
WHY does this happen?
The variable is initialized properly, at least I can call it with the
Here is the code:
>>>fin, fout = popen2.popen2("[programmecall]")
#HERE HAPPENS SOMETHING I DO NOT UNDERSTAND, python "waits"
>>>fin.read() #this works fine again
Is there a better way by using popen4? How to do that then?
More information about the Python-list