A command (and also bash function) to terminate another command after specified duration
bash-timeout is a command and also a bash function in order to terminate the target command if the target command does not finish within the duration specified beforehand. The input via either redirection ( < FILE ) or pipe ( | ) are transferred to the target command transparently. The exit status of the target command is retained if the target command finishes within the duration.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.