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!

Creating child processes

Status
Not open for further replies.

exhale

Technical User
May 9, 2005
2
0
0
BE
Hello,

This is what I want to accomplish:
A main.py file runs several other scripts one after another.

This command is used to run the the child scripts:

execCommand = viz._BIN_PRIMARY + ' "' + filename + '" 0'

win32process.CreateProcess(None, execCommand,None, None, 1, 0, None,None, win32process.STARTUPINFO())

Now as you might have guessed, the problem is that all the
child scripts are run at the same time. and i want them to go one after another.

Now my question is, is it possible to run a child script, then wait till that process is over and then continue the main script?

greets & thanks in advance,

Kevin
 
got it to work using:

os.system('c:\\Progra~1\\Vizard25\\bin\\winviz.exe c:\\Progra~1\\Vizard25\\experimenten\\Final\\a-01.py 0')

(actually generating the string for the different files, but this is what it comes down to)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top