Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read console output

Status
Not open for further replies.

123qweasdzc

Programmer
Sep 27, 2005
20
0
0
PT
Hello :).

I need to launch a *.exe file from a python script. I don't want the script to continue until that aplication stops.

1- Is there a method in python that already waits for an aplication to stop?
2- Should that aplication send an output messege like "done", and the python script waits for that console output message? Is this straitforward to do?

Thanks in advance :)
 
Look at the subprocess module. It can do what you want I believe.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top