I have 10 script files and each file contain up to 100 commands ( each command take 1 min ). At the moment it saves me time and I click only one file to execute 100 commands but what I want is another script file which execute 10 script files sequentially instead of me waiting for each to finish and then executing the second script file by clicking it.
Share
You just call each script as you would before, but seperate them with a semicolon
;After each script finishes execution, bash will start executing the next script.
In the terminal:
If you need more guidance check this question out, its fairly similar.
EDIT:
If you want to run multiple scripts from one other script this can be accomplished by adding the shebang line to tell the kernel the file is executable and then just listing what scripts you want: