Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Re: FLOCK
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1400 of 1483
Post > Topic >>

Re: FLOCK

by sdavis2@[EMAIL PROTECTED] (Sean Davis) May 29, 2007 at 05:11 PM

Akbar Ehsan wrote:
> Thanks for the response.
>
> Here is the situation. We have a web form that creates a tab-delimited
> text file. We want to lock this file to clean up the file, may be for a
> minute, so that if anyone submits a form request, it does not get
> written to the. I have been looking at and reading about FLOCK and feel
> it will not server the purpose. I am hoping to find out if someone knows
> about some other function/module to lock a file for a brief period of
> time.
>   
In this situation, I would tag each file with a unique identifier (a 
session ID, for example, like tabdelimited.hd76283420kdfsak9a.txt).  
Then, multiple submissions create different files.  Then, you can have a 
cron job or other cleanup script go through and remove the old or 
complete files. 

Sean
 




 1 Posts in Topic:
Re: FLOCK
sdavis2@[EMAIL PROTECTED]  2007-05-29 17:11:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Sep 5 11:48:00 CDT 2008.