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.
|
|---|