timeout runs a given command with a timeout. If the command takes longer than the specified number of seconds, it is killed and timeout exits with status 255.
Using timeout has some advantages over coding timeouts with shell tools:
See the man page for details.
timeout should compile and run on most Unix-like platforms. It has been successfully tested on:
timeout is free software distributed under the GPL.
See the files README and INSTALL in the tarball for more information.
timeout 60 ./test_run