summaryrefslogtreecommitdiffstats
path: root/misc-utils/script.1
diff options
context:
space:
mode:
authorSami Kerola2011-02-20 13:21:16 +0100
committerKarel Zak2011-02-21 16:50:44 +0100
commit33e47106747ed11ac6110209fc30758ff50ad0bf (patch)
tree006db0f47600ba92dc4a218e2cf6111fe3bd094e /misc-utils/script.1
parentscript: support for long options (diff)
downloadkernel-qcow2-util-linux-33e47106747ed11ac6110209fc30758ff50ad0bf.tar.gz
kernel-qcow2-util-linux-33e47106747ed11ac6110209fc30758ff50ad0bf.tar.xz
kernel-qcow2-util-linux-33e47106747ed11ac6110209fc30758ff50ad0bf.zip
script: inform about long options in script manual page
[kzak@redhat.com: - use -V instead of -v] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/script.1')
-rw-r--r--misc-utils/script.120
1 files changed, 13 insertions, 7 deletions
diff --git a/misc-utils/script.1 b/misc-utils/script.1
index 7a7760e3c..f411dc6e7 100644
--- a/misc-utils/script.1
+++ b/misc-utils/script.1
@@ -31,7 +31,7 @@
.\"
.\" @(#)script.1 6.5 (Berkeley) 7/27/91
.\"
-.Dd July 30, 2000
+.Dd Feb 20, 2011
.Dt SCRIPT 1
.Os Linux
.Sh NAME
@@ -45,6 +45,8 @@
.Op Fl f
.Op Fl q
.Op Fl t
+.Op Fl V
+.Op Fl h
.Op Ar file
.Sh DESCRIPTION
.Nm Script
@@ -65,31 +67,35 @@ If no file name is given, the typescript is saved in the file
.Pp
Options:
.Bl -tag -width Ds
-.It Fl a
+.It Fl a, Fl Fl append
Append the output to
.Ar file
or
.Pa typescript ,
retaining the prior contents.
-.It Fl c Ar COMMAND
+.It Fl c, Fl Fl command 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 e
+.It Fl e, Fl Fl return
Return the exit code of the child process. Uses the same format as bash
termination on signal termination exit code is 128+n.
-.It Fl f
+.It Fl f, Fl Fl flush
Flush output after each write. This is nice for telecooperation:
One person does `mkfifo foo; script -f foo' and another can
supervise real-time what is being done using `cat foo'.
-.It Fl q
+.It Fl q, Fl Fl quiet
Be quiet.
-.It Fl t
+.It Fl t, Fl Fl timing
Output timing data to standard error. This data contains two fields,
separated by a space. The first field indicates how much time elapsed since
the previous output. The second field indicates how many characters were
output this time. This information can be used to replay typescripts with
realistic typing and output delays.
+.It Fl V, Fl Fl version
+Output version information and exit.
+.It Fl h, Fl Fl help
+Output help and exit.
.El
.Pp
The script ends when the forked shell exits (a