in reply to how to continue in the loop after traping signal

What does that while loop stands for? What do you want to do with $no and sleep 2 ?