CGI counter how
andyheath2 at lineone.net
andyheath2 at lineone.net
Wed Nov 15 09:36:26 EST 2000
I need to implement a counter in a CGI
script. In the past I've done
this (not in python) by bracketing
code which updates a number in a file
with a mutex. To implement the
mutex I have made fcntl calls from c.
There must be a better way. I need
my solution to run under 1.5.2 at the
moment. I note that there is
an os.mutex documented but it isn't
present in the version/os I need to
use and I am unsure as to how it is
implemented and whether it will work
cross-process anyway.
Suggested solutions please.
Andy
More information about the Python-list
mailing list