file open verification

Erik Max Francis max at alcyone.com
Fri Sep 27 15:30:42 EDT 2002


John Howard wrote:

> Situation - I have several files on an apache server that are being
> accessed by
> python programs that are receiving data from html forms.
> 
> q1: How can the status of a file be checked?  If two forms have been
> submitted
> and the data is being added to a common file, how do I know that data
> from both forms are being written correctly to the common file?
> 
> q2: Related to above - really more of a cgi question - does the apache
> server keep all these file accesses separate some way?

No, it's your job to keep them all separate.  Not keeping them separate
will cause disaster.  Use lockfiles.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ An ounce of hypocrisy is worth a pound of ambition.
\__/ Michael Korda
    Crank Dot Net / http://www.crank.net/
 Cranks, crackpots, kooks, & loons on the Net.



More information about the Python-list mailing list