How to kill a child process after a given timeout in Bash?
stackoverflow.com