murex Shell Docs

Command Reference: lockfile

Create and manage lock files

Description

lockfile is used to create and manage lock files

Usage

Create a lock file with the name identifier

lockfile: lock identifier

Delete a lock file with the name identifier

lockfile: unlock identifier

Wait until lock file with the name identifier has been deleted

lockfile: wait identifier

Output the the file name and path of a lock file with the name identifier

lockfile: path identifier -> <stdout>

Examples

lockfile lock example
out "lock file created: ${lockfile path example}"

bg {
    sleep 10
    lockfile unlock example
}

out "waiting for lock file to be deleted (sleep 10 seconds)...."
lockfile wait example
out "lock file gone!"

See Also

This site is rebuilt weekly, the content is automatically generated from murex's source code. Last built on Mon May 25 06:11:51 UTC 2020 against commit aa3f3b7aa3f3b7e471543754fdcaf910d4920cad9112b91. Downloadable murex binaries are also built weekly. Current version is 0.48.0120 BETA which has been verified against 29375 tests.