<= back to main index


lock - obtain a lock then run a command - NFS-safe

Last modified: Apr 11 10:29

Overview

lock (manual: lock.1.html) obtains a lock and then runs a command. Multihost and NFS-safe, orignally done entirely in shell, now in perl because high lock contention used to blow the load average through the roof with the mkdir fork/exec load. The script note uses this to ensure atomic access to the log files it writes.