Ensuring exclusive file locks on UNIX platforms

Morten W. Petersen morten at esol.no
Sun Jan 21 11:06:04 EST 2001


Hi,

I've got a standalone script which I need to make sure doesn't
access a file while another process is running the same script.

Is there a way to ensure exclusive access to the file using
some existing python module, or do I need to add a .<filename>.lock
'hack' ?

Thanks in advance.

-Morten



More information about the Python-list mailing list