Salam,

In Python, you can use os.fork() and os.setsid() which are the substitutes
of C's fork() and setsid() (of course, you need to import os library).

I find this example concerning a simple daemon in python, and I hope you'll
find it useful:

http://homepage.hispeed.ch/py430/python/daemon.py

Regards


On 12/23/07, moayyad sadi <[EMAIL PROTECTED]> wrote:
>
> in C we use daemon() or fork() then setsid()
> I tried the later in python but it did not work ?
>
> what I mean, how to make a script that won't die when the caller ends
> or when you close the terminal
> _______________________________________________
> Developer mailing list
> [email protected]
> http://lists.arabeyes.org/mailman/listinfo/developer




-- 
It is the darkest under the lighthouse
_______________________________________________
Developer mailing list
[email protected]
http://lists.arabeyes.org/mailman/listinfo/developer

رد على