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