From my script I am running following commands:
SCRIPT_1="ksh -x script1.sh & ksh -x script2.sh"; SCRIPT_2="ksh -x script3.sh & ksh -x script4.sh"; eval $SCRIPT_1; sleep 20s; eval $SCRIPT_2; I want to only execute the $SCRIPT_2 after the $SCRIPT_1 completes. But currently they both getting executed at the same time regardless of they are being executed in separate lines.
Any idea on how to wait for the other script to finish before executing the next one?
waitto wait for all the background jobs.help wait.script1.shin the background butscript2.shin the foreground. Is that intended? The scripts of$SCRIPT_1shall run in parallel and after all of them have finished those of$SCRIPT_2shall run in parallel?