popenX() misunderstanding on win32

Peter Hansen peter at engcorp.com
Mon May 20 14:07:29 EDT 2002


Jon Nicoll wrote:
> 
>     I'm trying to get a small python script running under WinNT and am
> having trouble due to my lack of understanding of the mechanism of
> popen2() etc. I know that previous versions of popenX() have been
> broken but I don't think that's the problem.
[...]
> Then, how can I use popenX() to invoke the program, and write and read
> to 'stdin' and 'stdout', to duplicate the above? my experiments so
> far, involving os.popenX() and win32pipe.popenX(), haven't got me
> anywhere - I either get nothing when I do a read, or the process hangs
> waiting for input that I think should alread be there.

Maybe you could post a very small program representing the steps
you are taking and we could see if there's an obvious cause of the
problem... ?

-Peter



More information about the Python-list mailing list