in reply to Re: correct usage of flock?
in thread correct usage of flock?
It worked for me in Mandrake Linux 8. I took your script and moved the unlock to the very last statement. The single process was able to delete a file while it had an exclusive lock on it.