said i have looping script in file test.sh, i just want to running script "running_script2.sh" after the background process is complete, what i try like this, but it's not working .
for id in 1 2 3 do bash running_script1.sh $id & (#complete 1 minute/looping) done wait echo "running script2 ..." bash running_script2.sh
its work when :
bash running_script1.sh 1 & bash running_script1.sh 2 & bash running_script1.sh 3 & wait echo "running script2 ..." bash running_script2.sh
but its not efficient