In article <[EMAIL PROTECTED]>,
Simon Forman <[EMAIL PROTECTED]> wrote:
>gmax2006 wrote:
.
.
.
>> > Yes, there are several ways. What OS are you using?
>> >
>> > ~Simon
>>
>> I have to use an os-independent approach.
>>
>> At this point I use a file as running-flag. It doesn't work so good.
>> Because if the python application breaks or get terminated, it won't
>> run again unless somebody deletes the flag file.
>>
>> Alan
>
>Hmm, I'm very far from being an expert on this, so hopefully someone
>who knows better will reply.
>You might have to check the OS your script is running on and do, say,
>what faulkner proposed for linux (and Mac?), and something like
>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/474070 for
>windows.
.
.
.
Particularly when I hear "os-independent", I think first of
binding to a socket. While <URL: http://wiki.tcl.tk/1558 >
is written for a Tcl-based crowd, the commentary there ap-
plies quite well to Python.
--
http://mail.python.org/mailman/listinfo/python-list