file open verification

Charles W. Strickland cstrickland at surry.net
Tue Oct 1 06:23:53 CEST 2002


On Fri, 27 Sep 2002 12:30:42 -0700, Erik Max Francis <max at alcyone.com>
wrote:

>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.

Where do I find info on lockfiles and how they work?
>
>-- 
> 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