I have a bunch of Bash scripts. I separated them into groups of three. The first group has 3 scripts, the second group has 3 scripts, the third group has only 1 script.
The workflow must be like this:
1) The first group should be running at the same time. The second group and the third group shouldn’t be running when the first group is running.
2) The second group should start running once the first group has stopped.
3) The third group should start running once the second group has stopped.
I created a run.sh:
P.S.: Each script is going to start asynchronously in each group.