Re: Wait For Application Start

2007-09-18 Thread Francesco Guerrieri
On 9/18/07, Michael Bentley <[EMAIL PROTECTED]> wrote: > > > > import os.path > > import time > > > > while True: > > if os.path.exists(YOUR_FILE): > > break > > time.sleep(30) > > or > > while not os.path.exists(YOUR_FILE): > time.sleep(1) I thought of that, but I found more

Re: Wait For Application Start

2007-09-18 Thread Michael Bentley
On Sep 18, 2007, at 5:40 AM, Francesco Guerrieri wrote: > On 9/18/07, Robert Rawlins - Think Blue > <[EMAIL PROTECTED]> wrote: >> This seems like a very logical method, but I'm not sure how to >> implement it >> into my python code? Is there a simple way to make it wait for >> that file? >> W

Re: Wait For Application Start

2007-09-18 Thread Francesco Guerrieri
On 9/18/07, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> wrote: > This seems like a very logical method, but I'm not sure how to implement it > into my python code? Is there a simple way to make it wait for that file? > Without the need to build my own conditional loop? I'm not sure why how you

Wait For Application Start

2007-09-18 Thread Robert Rawlins - Think Blue
Hello Guys, I'm kick starting my application using the inittab to ensure its re-spawned if it dies. However I need to ensure several other applications and service are up and running before my application is started, things such as dbus and a couple of other hardware stacks. A concept I've