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
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
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