From df1dddf9ffcfc1e291de809c0e8b9060bfea02ee Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:26:12 +0100 Subject: Imported from util-linux-2.12 tarball. --- misc-utils/script.1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'misc-utils/script.1') diff --git a/misc-utils/script.1 b/misc-utils/script.1 index 6e987732e..b8e543773 100644 --- a/misc-utils/script.1 +++ b/misc-utils/script.1 @@ -40,6 +40,7 @@ .Sh SYNOPSIS .Nm script .Op Fl a +.Op Fl c Ar COMMAND .Op Fl f .Op Fl q .Op Fl t @@ -69,6 +70,10 @@ Append the output to or .Pa typescript , retaining the prior contents. +.It Fl c Ar COMMAND +Run the COMMAND rather than an interactive shell. +This makes it easy for a script to capture the output of a program that +behaves differently when its stdout is not a tty. .It Fl f Flush output after each write. This is nice for telecooperation: One person does `mkfifo foo; script -f foo' and another can -- cgit v1.2.3-55-g7522