Mirror of timeout - My small utility to execute a program for a given time
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.
Felix 56c952d3b2 Travis fix 1 year ago
.gitignore Daemonize support 5 years ago
.travis.yml Travis fix 1 year ago
LICENSE Initial commit 5 years ago
Makefile Kickoff 5 years ago
README.md README updated 1 year ago
timeout.c Small refactoring 1 year ago
timeout.png README updated 1 year ago

README.md

timeout

Build Status

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

alt tag

License

This work is licensed under the MIT license (http://opensource.org/licenses/MIT)

2019, Felix Niederwanger, http://feldspaten.org