0

Is there something I could add to a Bash script to always assert correctly if it's running so a it can not be executed simultaneously with itself or some other script.

I was thinking like they way capture groups can be named in regex or the name or id keyword in HAProxy. A variable the could be set and unset at the end but, or a reliable version of this that is unset automatically in case of exiting prematurely (thus never unsetting this random variable blocking itself to run later)

Is there?

Vita
  • 151

0 Answers0