Hello I am working with a simulator that uses rcS scripts to boot, this is my script
cd /tests ./test1 & ./test2 & ./test3 & ./test4 exit
What I want is run all the test at the same time and that the exit command is executed only when all the previous test have finished. And not only when test 4 has finished, is this possible?. Thank you.
You can use wait:
From the bash man page: