I want the ruby script to end on infinite loops, or if the ruby script takes more than 10 seconds than the completion of the script itself. I know, using the ctrl key or any keyboard interrupt, I can do this, but I want the script to automatically terminate itself if it takes more than 10 seconds
source
share