The software on this pages will slowly be moved to GitHub https://github.com/hilbix/. The CVS repository will be migrated to GIT as well, so the history will be preserved, a bit. See FAQ.
The tools are developed under Linux with
ESR's paradigm
release early, release often
in mind.
So you can consider this beta software, or alpha, or pre-alpha, or even worse ;)
Have a look in the download directory for all downloads.
As always here, all you get is the source. No binaries here.
Execute a command or pipe only for a given duration.
⇒ ⇒ ⇒ The development shifted to another location. All future versions will be published at https://github.com/hilbix/timeout ⇐ ⇐ ⇐
Timeout is a complete rewrite of a program which I had before. It is used to restrict the time duration a program runs. Note that the "timeout" command which comes with Debian Etch is seriously broken, therefor I had to create this one here.
Just call it as
timeout [-v] [-signal[@seconds]...] seconds [-|program [args...]]
Future (not yet implemented) plans:
Examples:
same as 'sleep 5'
same as 'sleep 5 & tail -+0 --pid=$! -f /var/log/messages'
nearly the same as
'cat /var/log/messages | while read -t5 data; do echo "$data"; done'
nearly same as
'ls & PID=$!; { sleep 5; kill $PID; } & PID2=$!; wait $PID; kill $PID2'
(Please note that 'ls & PID=$!; sleep 5; kill $PID' would always delay 5 seconds.)
version 0.0.3-20101021-011348 | Fixes for wrong return values. Returns 127 in case of child exec fails. Returns 210 on fork fails as it ought to (instead of -1 previously) As always, nearly not tested at all. |
version 0.0.2-20090110-011728 | Minor bugfix for output in pipe case |
version 0.0.1-20081102-014209 | Bugfix: Idle mode was inverted |
version 0.0.0-20081102-011558(225939 bytes archive) | I needed this version as a replacement for the broken variant which comes with Debian Etch (which does not return the return value of the forked command). |
License and Disclaimer
All you can see here is free software according to the GNU GPL. |