How to Use the timeout Command on Linux
OK, that’s enough computer time. You can give processes time limits, setting a maximum time they can run for with the timeout
command. Here’s a tutorial to putting limits on running programs with this command.