Tech News
← Back to articles

Show HN: Linux CLI tool to provide mutex locks for long running bash ops

read original related products more articles

WaitLock

WaitLock is a portable UNIX/POSIX command-line tool that provides mutex and semaphore functionality for shell scripts. It enables synchronized access to resources across multiple processes with automatic cleanup when processes die.

Features

Mutex Mode : Single lock holder (default)

: Single lock holder (default) Semaphore Mode : Multiple concurrent lock holders

: Multiple concurrent lock holders Automatic Cleanup : Locks released when process dies

: Locks released when process dies CPU-aware Locking : Can scale locks to CPU count

: Can scale locks to CPU count Lock Inspection : List and check active locks

: List and check active locks Multiple Output Formats : Human, CSV, and null-separated

: Human, CSV, and null-separated Command Execution : Run commands while holding locks

... continue reading