Writing a simple linux daemon type thing...
Michael Hudson
mwh at python.net
Fri Jun 14 09:05:32 EDT 2002
"Jones" <jones at jones.jones> writes:
> Thank you for you reply. Just one more question. Doing what you suggest
> was my first thought. But I thought I read somewhere last night that using
> "&" was not a good idea..... I have no idea why (it sounds good to me), but
> I guess I just want to understand the difference between running it as a
> "daemon" and just running it the background... if there is one.
If you run it as a true daemon, you need to be careful about writing
to stdout/stderr (because they're not there any more). Think
tracebacks.
Cheers,
M.
--
ARTHUR: Yes. It was on display in the bottom of a locked filing
cabinet stuck in a disused lavatory with a sign on the door
saying "Beware of the Leopard".
-- The Hitch-Hikers Guide to the Galaxy, Episode 1
More information about the Python-list
mailing list