mirror of https://github.com/grisu48/timeout.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
3 years ago | |
---|---|---|
.gitignore | 7 years ago | |
.travis.yml | 3 years ago | |
LICENSE | 7 years ago | |
Makefile | 7 years ago | |
README.md | 3 years ago | |
timeout.c | 3 years ago | |
timeout.png | 3 years ago |
README.md
timeout
Tool to execute arbitrary programs with a given timeout
Usage
timeout [OPTIONS] TIMEOUT PROGRAM [ARGUMENTS]
Synopsis
OPTIONS:
-v --verbose Turn verbosity on (including runtime)
-9 --kill On timeout, send SIGKILL instead of SIGTERM
-h --help Display help message
TIMEOUT is given in seconds
PROGRAM is the program that is executed with the given timeout
ARGUMENTS are optional arguments passed to the program
A example would be
timeout 3 sleep 5
# Run 'sleep 5' for 3 seconds, then terminate
Compile
make
sudo make install # Installs the program to /usr/local/bin
Screenshot
License
This work is licensed under the MIT license (http://opensource.org/licenses/MIT)
2019, Felix Niederwanger, http://feldspaten.org