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