Re: FLOCK

[email protected] (Sean Davis)
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
Akbar Ehsan wrote:
> Hello Everyone,
>
> I am attempting to lock a file using FLOCK. I understand the FLOCK is an
> advisory lock and that it does not prevent any other process/program
> from "clobbering" the file even when the lock in on the file.
>
> Is there anything I should look into to apply a lock on a file so that
> it does not get written to when the lock is in place?
>
> Any thoughts or ideas would be appreciated.
>   
I'm not sure what you are trying to do, but you might want to look at 
using a transactional database like mysql or postgresql.

Sean
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.