Re: os.popen on windows: loosing stdout of child process

2007-05-11 Thread half . italian
On May 11, 8:46 pm, Greg Ercolano <[EMAIL PROTECTED]> wrote: > When I use os.popen(cmd,'w'), I find that under windows, the stdout > of the child process disappears, instead of appearing in the DOS > window > the script is invoked from. eg: > > C:\> type foo.py > import os

Re: os.popen on windows: loosing stdout of child process

2007-05-11 Thread Gabriel Genellina
En Sat, 12 May 2007 00:46:16 -0300, Greg Ercolano <[EMAIL PROTECTED]> escribió: > When I use os.popen(cmd,'w'), I find that under windows, the stdout > of the child process disappears, instead of appearing in the DOS window > the script is invoked from. eg: [...] > When I

os.popen on windows: loosing stdout of child process

2007-05-11 Thread Greg Ercolano
When I use os.popen(cmd,'w'), I find that under windows, the stdout of the child process disappears, instead of appearing in the DOS window the script is invoked from. eg: C:\> type foo.py import os import sys file = os.popen("nslookup", 'w') file.write("google.com\n") file