CGI counter how

andyheath2 at andyheath2 at
Wed Nov 15 15:36:26 CET 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.


More information about the Python-list mailing list