Prevent overlapping runs
low risk
Wraps a command with a file lock. See the flags and examples below, and run `man flock` for the full reference.
flock -n /tmp/job.lock ./job.shSkip if already running · explain & risk-check →Reference text is hand-written and may be incomplete — check man flock for your version. Test destructive commands on a non-production system first.