[Tutor] run in "deamon" mode?

Remco Gerlich remco at gerlich.nl
Thu Jan 10 09:31:18 CET 2008


A few days ago, someone posted a "daemon.py" to Reddit, that's supposed to
do everything needed. Haven't used it myself, but here it is:


On Jan 10, 2008 6:41 AM, Allen Fowler <allen.fowler at yahoo.com> wrote:

> Hello,
> How can a make a python script run in "deamon mode"? (on a linux box)
> That is, I want to run the program via "python myfile.py" and have it drop
> me back to the command line.  The program should continue running until I
> kill it via it's PID, the machine shuts down, or the program itself decides
> to shutdown.   It should _not_  die when I simply log-out, etc.
> Is there a standard library module to help with this?
> -- Thank you
>  ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080110/eda764e5/attachment.htm 

More information about the Tutor mailing list