flock (1) - manage locks from shell scripts flock (2) - apply or remove an advisory lock on an open file