semvec/pypi-packages huggingface dataset:
bash-timeout 1.1.0
A command (and also bash function) to terminate another command after specified duration
License: MIT

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.