Re: Daemonizing python



Na dan Sun, 24 Sep 2006 14:35:31 -0700, Paul Rubin je napisao:
Try it this way:

import os, sys
print "Entering program"

if os.fork():
sys.exit() # parent process exits so shell returns

while (1): # child process continues
pass # some other work

This works! Thanks a bunch, Paul.
.



Relevant Pages

  • Re: Dudu isnt whohe claims he is.
    ... For being a bunch of wannabe gunslingers you guys sure are the ... A slanderous claim ... Shankar and Paul McCartney after I retired from the Indian Airforce? ...
    (talk.politics.guns)
  • Re: Recovery Console and Goback
    ... just have a bunch of apps cd's. ...
    (microsoft.public.windowsxp.general)
  • [fw-wiz] Ugh, unintentional approval :(
    ... I think I accidently approved an HTML-infested spam e-mail while trying to ... forward a bunch of messages to my account to reply off-list when trying to ... Paul D. Robertson "My statements in this message are personal opinions ...
    (Firewall-Wizards)
  • Re: How to start a spreadsheet (inventory)
    ... Paul B ... Thanks a whole bunch for getting me ... I cannot describe to you the frustration I have had in ... Prev by Date: ...
    (microsoft.public.excel.newusers)
  • Re: Trilaterals still in control
    ... Paul, ... A bunch of powerful, influential people from ... around the world start an organization so they can interact and meet other ...
    (rec.gambling.poker)