summaryrefslogtreecommitdiffstats
path: root/misc-utils/script.1
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:44 +0100
committerKarel Zak2006-12-07 00:25:44 +0100
commit66ee8158b69525e12060ef558cb5d77feadab1dc (patch)
tree08b30f2d07df9213f5647bc6f60b5090a263ef43 /misc-utils/script.1
parentImported from util-linux-2.10m tarball. (diff)
downloadkernel-qcow2-util-linux-66ee8158b69525e12060ef558cb5d77feadab1dc.tar.gz
kernel-qcow2-util-linux-66ee8158b69525e12060ef558cb5d77feadab1dc.tar.xz
kernel-qcow2-util-linux-66ee8158b69525e12060ef558cb5d77feadab1dc.zip
Imported from util-linux-2.10s tarball.
Diffstat (limited to 'misc-utils/script.1')
-rw-r--r--misc-utils/script.114
1 files changed, 11 insertions, 3 deletions
diff --git a/misc-utils/script.1 b/misc-utils/script.1
index ddc35223d..3edd82d4b 100644
--- a/misc-utils/script.1
+++ b/misc-utils/script.1
@@ -31,15 +31,17 @@
.\"
.\" @(#)script.1 6.5 (Berkeley) 7/27/91
.\"
-.Dd July 27, 1991
+.Dd July 30, 2000
.Dt SCRIPT 1
-.Os BSD 4
+.Os Linux
.Sh NAME
.Nm script
.Nd make typescript of terminal session
.Sh SYNOPSIS
.Nm script
.Op Fl a
+.Op Fl f
+.Op Fl q
.Op Ar file
.Sh DESCRIPTION
.Nm Script
@@ -58,7 +60,7 @@ saves all dialogue in
If no file name is given, the typescript is saved in the file
.Pa typescript .
.Pp
-Option:
+Options:
.Bl -tag -width Ds
.It Fl a
Append the output to
@@ -66,6 +68,12 @@ Append the output to
or
.Pa typescript ,
retaining the prior contents.
+.It Fl f
+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
+Be quiet.
.El
.Pp
The script ends when the forked shell exits (a