To avoid memory surge in unix loops, to wait/delay/sleep for a certain among of time:
sleep 2s # seconds (default)
sleep 2m # minutes
sleep 2h # hours
sleep 2d # days
To embed in loops:
for sample in "${sample_list[@]}"
do
(
yourScript_1.sh "${sample}"
wait
yourScript_2.sh "${sample}"
)&
sleep 10m
done
Source: https://www.cyberciti.biz/faq/linux-unix-sleep-bash-scripting/