X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/misc/blobdiff_plain/07f879f5414a20f0aa7ad13dfc1af0689c13f42d..753f86deeb79fb61d962b2066dde8c8cc31be85f:/mtimeout.1 diff --git a/mtimeout.1 b/mtimeout.1 index c696f93..9332807 100644 --- a/mtimeout.1 +++ b/mtimeout.1 @@ -6,15 +6,27 @@ mtimeout \- run a program for at most a given amount of time .B mtimeout .RB [ \-s .IR signal ] -.I seconds +.I time .I command .RI [ arguments ...] . .SH DESCRIPTION The .B mtimeout -command runs a specified program for at most a given number of -.IR seconds . +command runs a specified program for at most a given amount of +.IR time . +The +.I time +may be fractional (with a decimal point), and may be followed by a unit +suffix: +.RB ` s ' +for seconds, +.RB ` m ' +for minutes, +.RB ` h ' +for hours, and +.RB ` d ' +for days. .PP It works by running the given command as a separate process group. It then waits either for the top-level process (only) to exit, or for the