[Tutor] Process problem
albertito_g at hotmail.com
Thu Jun 16 15:09:08 CEST 2005
Nevermind, it worked with the & trick.
I just posted because the first 2 times didn't do anything but there was an
error in the crontab so...
Thanks to all who helped
>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?
>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:
> > 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
> > 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
> > Maybe a different approach will be the solution but I can't find a way
> > it
> > Best Regards
> > Alberto
>I didn't follow the thread completely, so maybe I missed something, but if
>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.
>Tutor maillist - Tutor at python.org
More information about the Tutor