Opening a file in shared mode

Laurent Pointal laurent.pointal at laposte.net
Sat Dec 1 18:55:14 CET 2001


The question is in the title...

Working on a log system, no problem to open a file and write in. But I would 
like to be able to open that file for reading in other processes (ex. do a 
tail -f on the file, or open it with an editor).
I tried low level access via os module, but no option to specify a shared 
mode. With newsgroup search, I found posts about lock files implementation 
for shared resources among several process, but no opening mode for shared 
file.

If anybody have a solution... thanks.

Platform: Win2K
Python: 2.1

A+

Laurent.




More information about the Python-list mailing list