[Tutor] Re: keeping the program alive

Lee Harr missive at hotmail.com
Thu Jan 1 22:18:40 EST 2004

>i've put this in my small program, just to keep it running continuosly
>while 1:
>       connect_to_server() #it does some things..
>       sleep(120)
>i execute the program with "python script.py &"
>it runs well for about 5 minutes but then it quits.
>how can i fix it ?

We're going to need a bit more ...

Try running it without the & and see if you get an error message.

Tired of spam? Get advanced junk mail protection with MSN 8. 

More information about the Tutor mailing list