Shell scripts, regardless of how they are executed, execute one command after another. Thus, your code will execute results.shafter the last command completes st_new.sh.
, : &
cmd &
: " cmd . script."
, & , cmd . , st_new.sh . , script:
cmd &
BACK_PID=$!
(PID) BACK_PID. , :
while kill -0 $BACK_PID ; do
echo "Process is still active..."
sleep 1
done
, , - /
wait $BACK_PID
, , &. , PID , shell &, PID.