Re: trying to use popen2() to communicate with C program

2006-03-28 Thread I. Myself
Dennis Lee Bieber wrote: > On Tue, 28 Mar 2006 18:02:46 GMT, "I. Myself" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> The compile C program, commer.exe, writes a line of text to its stdout. >> The python program does not receive it; it never gets to print "Got here

Re: trying to use popen2() to communicate with C program

2006-03-28 Thread I. Myself
Rene Pijlman wrote: > I. Myself: > >> I can't get this to work >> > > With what versions of what software on what platform? > I'm glad you asked. really! Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32 Windows 2000. AMD processor. mingw compiler. Mitche

Re: trying to use popen2() to communicate with C program

2006-03-28 Thread Rene Pijlman
I. Myself: >I can't get this to work With what versions of what software on what platform? -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list

trying to use popen2() to communicate with C program

2006-03-28 Thread I. Myself
I can't get this to work: # commer.py - to test communication with other process from popen2 import popen2 (child_stdout, child_stdin) = popen2("commer.exe") print "Got here 1" line = child_stdout.readline() print "Got here 2" child_stdin.write(line) child_stdin.close child_stdout.close The com