Suppose I have a shell script A.sh whose content is:
A.sh
sleep 2 echo "A: 2s" sleep 2 echo "A: 4s" sleep 2 echo "A: 6s"