macOS / binaries /

shlock

/usr/bin/shlock
Create or verify a lock file for shell scripts

The shlock command can create or verify a lock file on behalf of a shell or other script program. When it attempts to create a lock file, if one already exists, shlock verifies that it is or is not valid. If valid, shlock will exit with a non-zero exit code. If invalid, shlock will remove the lock file, and create a new one.

source: man