my $lock = "/var/www/html/shhabcam/LOGS/lock_file.txt"; sysopen LOCK, $lock, O_CREAT or die "Can't sysopen $lock: $!" +; flock LOCK, LOCK_EX or die "Can't flock $lock: $!";
this blocks successfully with two users...does it have any issues with 6 or more users?
In reply to 'flock' with multiple users by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |