[Tutor] Process problem
Alberto Troiano
albertito_g at hotmail.com
Thu Jun 16 14:45:17 CEST 2005
Thanks for the reply
That was one of the problems
Now the other problem is that when the script finishes all processes (runing
in the background or not) finishes with him. levantamuertos.py is supoosed
to be a process manager for cotascamon.py
I need levantamuertos.py run, start the cotascamons.py that are dead, let
them running and then die letting the others alive
How can I do this?
Best Regards
Alberto
>From: Michael Lange <klappnase at freenet.de>
>To: tutor at python.org
>Subject: Re: [Tutor] Process problem
>Date: Thu, 16 Jun 2005 12:19:12 +0200
>
>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
>
>_______________________________________________
>Tutor maillist - Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor
Gaucho
More information about the Tutor
mailing list