summaryrefslogtreecommitdiffstats
path: root/misc-utils/script.1
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:12 +0100
committerKarel Zak2006-12-07 00:26:12 +0100
commitdf1dddf9ffcfc1e291de809c0e8b9060bfea02ee (patch)
tree03b712bddec33d05754bf59d31a75d7e2022761e /misc-utils/script.1
parentImported from util-linux-2.11y tarball. (diff)
downloadkernel-qcow2-util-linux-df1dddf9ffcfc1e291de809c0e8b9060bfea02ee.tar.gz
kernel-qcow2-util-linux-df1dddf9ffcfc1e291de809c0e8b9060bfea02ee.tar.xz
kernel-qcow2-util-linux-df1dddf9ffcfc1e291de809c0e8b9060bfea02ee.zip
Imported from util-linux-2.12 tarball.
Diffstat (limited to 'misc-utils/script.1')
-rw-r--r--misc-utils/script.15
1 files changed, 5 insertions, 0 deletions
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