[Tutor] Process problem

Michael Lange klappnase at freenet.de
Thu Jun 16 12:19:12 CEST 2005


On Wed, 15 Jun 2005 22:04:48 +0000
"Alberto Troiano" <albertito_g at hotmail.com> wrote:

Hi Alberto,

> Hey
> 
> Let me make you understand
> 
> I need that levantamuertos.py run cotascamon.py (every script with it 
> differents arguments that are passed) and then die letting the cotascamon.py 
> scripts running independently
> 
> Now, I don't know if my code is right, and thinking now you're right, 
> levantamuertos.py waits until cotascamon.py finish.
> What can I do since cotascamon will never die (and it doesn't have to die)?
> 
> Maybe a different approach will be the solution but I can't find a way to do 
> it
> 
> Best Regards
> 
> Alberto
> 

I didn't follow the thread completely, so maybe I missed something, but if the problem
is that python waits until the os.system() calls are finished, I think adding a "&" to
the command to make it run in the background should do the trick.

Best regards

Michael



More information about the Tutor mailing list