Skip to content

Stovesy

My Works

  • Mono
  • Colour

Tag: bash

Bash Lockfile Script

Posted on November 21, 2016March 16, 2022 Posted in ComputingTagged bash

Just a little lockfile library for bash.
If the lockfile script is in the same folder as your script.. source $(dirname $0)/lockfile.sh

Then call.

setup_lockfile
check_lock
create_lock

Do your scripty stuff then call

cleanup_lock
 Continue reading "Bash Lockfile Script" →
Proudly powered by WordPress | Theme: Blask by Automattic.