How to ensure only one instance of a Bash script is running πŸƒ

A single line to make sure only one bash script instance is running, I don’t think it could be any simpler! πŸ˜…

--

--

Are you looking to read for more technical posts? πŸ€– Follow me! I publish articles about Docker 🐳, JavaScript 🐝, GitLab 🦊, Java β˜•, etc. once a week.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Benjamin Rancourt

Are you looking to read for more technical posts? πŸ€– Follow me! I publish articles about Docker 🐳, JavaScript 🐝, GitLab 🦊, Java β˜•, etc. once a week.