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's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.

Last built on Mon Feb 13 09:18:06 UTC 2023 against commit f339958f33995895c1d997efcdbb8408d2c8d45f8b5f934.

Current version is which has been verified against 13950 tests cases.