Syncronizing CGI Scripts
usenet at thinkspot.net
Tue Aug 27 02:41:35 CEST 2002
On Mon, 26 Aug 2002 23:32:44 +0200, Thomas Guettler
<pan-newsreader at thomas-guettler.de> wrote in comp.lang.python in article
<pan.2002.08.26.23.32.43.787413.720 at thomas-guettler.de>:
> On Mon, 26 Aug 2002 17:15:19 +0200, Changjune Kim wrote:
> > You need a locking scheme such as lock file or file locking.
> Couldn't mutexes be used?
Yes, but then you need to lock the mutexes. Essentially, that is what my
> > Of course, you can use a RDBMS such as mysql, or embeded DBMS such as
> > sqlite, gadfly, zodb(with zeo), or bsddb3, which comes with locking ...
> I want it to be as simple as possible. I try to avoid non standard
In order to apply the solution I came up with, you would need to
install the win32 modules on any windows machines using this module.
Read the whole thread. Actually, you should probably search for the
other two threads mentioned, as they have important information from
lots of knowledgeable people about the trickiness of file locking and
There is another solution that I know of, called "portalocker.py" and
is cross-platform and available on the active state, site, I believe, in
Here is a google groups link:
More information about the Python-list