in reply to Sending signal to running script

Unless you cause system to run the external program as an asynchronous (background) task, your script will not regain control until after that external program times out. So your sleep will do nothing except slow you down more.

Additionally, system doesn't give you access to the pid of the external process, so you won't know where to send your interupts to.


Examine what is said, not who speaks.        The end of an era!
"But you should never overestimate the ingenuity of the sceptics to come up with a counter-argument." -Myles Allen
"Think for yourself!" - Abigail        "Time is a poor substitute for thought"--theorbtwo         "Efficiency is intelligent laziness." -David Dunham
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon