Re: Hiding Console Output

2006-08-04 Thread John Savage
"Kkaa" <[EMAIL PROTECTED]> writes: >I'm using the os.system command in a python script on Windows to run a >batch file like this: > >os.system('x.exe') Is .exe really a batch file? >The third-party program x.exe outputs some text to the console that I >want to prevent from being displayed. Is th

Re: Hiding Console Output

2006-08-03 Thread Simon Forman
Kkaa wrote: > This seems like the right thing to do, but it runs the program in the > background, and I need my program to wait until the x.exe has finished. > I tried using this code: > > p = > subprocess.Popen("x.exe",shell=True,stdout=subprocess.PIPE,stdin=subprocess.PIPE, > stderr=subprocess.P

Re: Hiding Console Output

2006-08-03 Thread Kkaa
This seems like the right thing to do, but it runs the program in the background, and I need my program to wait until the x.exe has finished. I tried using this code: p = subprocess.Popen("x.exe",shell=True,stdout=subprocess.PIPE,stdin=subprocess.PIPE, stderr=subprocess.PIPE) sts = os.waitpid(p.p

Re: Hiding Console Output

2006-08-02 Thread placid
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fro

Re: Hiding Console Output

2006-08-02 Thread kyle.tk
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fro

Re: Hiding Console Output

2006-08-02 Thread Larry Bates
Kkaa wrote: > I'm using the os.system command in a python script on Windows to run a > batch file like this: > > os.system('x.exe') > > The third-party program x.exe outputs some text to the console that I > want to prevent from being displayed. Is there a way to prevent the > output of x.exe fr

Hiding Console Output

2006-08-02 Thread Kkaa
I'm using the os.system command in a python script on Windows to run a batch file like this: os.system('x.exe') The third-party program x.exe outputs some text to the console that I want to prevent from being displayed. Is there a way to prevent the output of x.exe from python? -- http://mail.