processes

H

hyperbob

Hello,

I have a simple little problem. I am writing a program that consists
of several distinct processes (GUI, database, etc.). I ran into
problems trying to make them all run in parallel and independently. I
wanted to write a script that will get them all up and running, but it
does not seem to be possible without either killing the parent process
or depriving the child processes of a console window. This is
essentialy what I want:

scripts = ["monitor.py", "server.py", "test2.py"]
for script in scripts:
run_and_forget_about_it("python.exe " + script)

Anyone knows who to implement run_and_forget_about_it?

Thanks,

Bob.
 
D

Daniel Dittmar

hyperbob said:
I have a simple little problem. I am writing a program that consists
of several distinct processes (GUI, database, etc.). I ran into
problems trying to make them all run in parallel and independently. I
wanted to write a script that will get them all up and running, but it
does not seem to be possible without either killing the parent process
or depriving the child processes of a console window. This is
essentialy what I want:

scripts = ["monitor.py", "server.py", "test2.py"]
for script in scripts:
run_and_forget_about_it("python.exe " + script)

Anyone knows who to implement run_and_forget_about_it?

Try os.system ('cmd.exe /c start python.exe ' + script)
This should create a new console window.

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,055
Members
47,659
Latest member
salragu

Latest Threads

Top