On Mon, 11 Nov 2002, Nisim, Amit wrote: > Hi All, > > > flock doesn't work when I am running flock to file x from different machines. > > What I mean: > I am running flock from machine XXX on file z > If I try to write to file z from machine YYY I succeed. > > > Do you know mechanism like flock that work on several machines ?
flock provides you with advisory locking, what does this mean? All processes trying to access this file must check for the existence of a lock. You can flock a file (advisory lock) and still read or write from another process in the same machine. You might be interested in mandatory locking, but I am not sure if you can obtain mandatory locking on a NFS mounted filesystem. You might want to google on this topic before even attempting it. You have been warned :-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]