[clug] killing a looping / hung script?

Paul Wilson mylists at wilsononline.id.au
Tue Dec 6 06:05:57 UTC 2016

I have a perl script which occasionally goes into a hung or wait state, and
wanted to know is there a standard way to automatically kill this process
after some timeout (eg 1 min).
Note the perl script is doing a Serial port read and for some reason it
waits if there is an issue with the Arduino.

ie can I use some sort of wrapper script to check this state and kill it?


More information about the linux mailing list