Installation
$ [sudo] pip install shell-timeout
$ [sudo] npm i -g shell-timeout
How it works
If the command times out, then exit with status 124. Otherwise, exit with the status of COMMAND
Examples
$ timeout 1 sleep 2
timeout command
$ [sudo] pip install shell-timeout
$ [sudo] npm i -g shell-timeout
If the command times out, then exit with status 124. Otherwise, exit with the status of COMMAND
$ timeout 1 sleep 2