i'm trying to lock a log file wheneber a new visitor enters the page and also when we run scripts to traverse the log file looking for specific info. On Mon, Jun 04, 2001 at 07:42:38AM -0700, Peter Cornelius wrote: > According to the docs flock is just an 'advisory' lock. So it only works as > long as everyone checks the file with flock before working with it, so it's > not very secure. The point of flock is to keep several programs from > clobbering each others data so I don't think using it as a security feature > will work well. What are you trying to do? > > Peter C. > > Nichole Bialczyk wrote: > > > i'm curious as to how secure flock is. if the file is locked and another > > user tries to access it, does it wait or does it kick them off? also, is > > it ever possible for it to get stuck? > > > > thanks, nichole >