from subprocess import Popen procs = [ Popen("my-other-script") for i in range(1000) ] for p in procs: p.wait()
p.wait will be called for each process in the list so its not quite the same as a single os.wait but then that might be what's wanted!
I'm not sure but from the docs it sounds like os.wait() would be called once for each child also, as it returns "a tuple containing [a child process'] pid and exit status indication".
Kent
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
