Install run-one by entering the following commands in the terminal:
sudo apt update sudo apt install run-one
Description:
run just one instance of a command and its args at a time
This utility will run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg).
Homepage: http://launchpad.net/run-one
Version: 1.17-0ubuntu1
Section: admin