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?