Linux Mastering Development

How to make sure only one instance of a bash script with parameters runs?

if I have a, it has two parameters: environment and release version. uat release1 prod release1

I want to make at any time: the with same environment and release version can be run in singleton.
But uat release1 and prod release1 can be run concurrently.

How to do this.

Leave a Reply

Your email address will not be published. Required fields are marked *