Execute a job only when the previous has finished

Solution 1:

I assume you are in a linux environment so you should be able to use the run-one command ( ubuntu run-one ) in conjunction with you bash script in a crontab.

e.g.

* * * * * cd /path/to/your/script && run-one ./your-script.sh

If not available you should be able to install if with your package manager