I would like to queue some bash scripts on a file that I can modify. So that I launch that file "lauchscripts.py" or "lauchscripts.sh" which contains the commands for launching the scripts:
1:> source folder1/script1.sh
2:> source folder2/script2.sh
3:> source folder3/script3.sh
4:>
So that: 1) when I launch this, it launches script1.sh, then when it finishes it launches script2.sh and so on. 2) at anytime while running,I can add lines to my "lauchscripts" file that will be later executed. Let's say while running script3.sh (line 3), if I add at line 4 a command:
1:> source folder1/script1.sh
2:> source folder2/script2.sh
3:> source folder3/script3.sh
4:> source folder4/script4.sh
This line will execute script4.sh after finishing script3.sh
Is that possible?
Thanks