newbie: how to capture/write to stdio on NT

A. Lloyd Flanagan alloydflanagan at comcast.net
Tue May 25 13:18:18 EDT 2004


"Sholtz" <nospam at nospam.com> wrote in message news:<jLMrc.5349$Tn6.1709 at newsread1.news.pas.earthlink.net>...
> Hi,
> 
> I am trying to figure out how to 'control' the input & output using
> popen/popen2 etc on Python 2.3
> I have found examples for unix such as the one below but I can't get it to
> work on Windows NT.
> 
> If I use the os.popen module I can read OR write not both.
> 
> Anybody have any ideas?
> 
> Regards,
> 
> Sholto.
> 
popen() at least used to not work reliably under Windows, not sure if
that's the current status.  There apparently were problems with the
POSIX emulation and the fact that the Windows methods for creating
processes are somewhat different.  You might look into the
CreateProcess() system call.



More information about the Python-list mailing list