chiark / gitweb /
mtimeout.c: Accept time unit specification on timeout options.
[misc] / mtimeout.1
index c696f93c376a25db0ef09bfb5fb7b3a28530e388..9332807cc051daec3cc9d0ee4390dcfb3cabc1db 100644 (file)
@@ -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