]> git.ipfire.org Git - thirdparty/util-linux.git/blame - term-utils/scriptreplay.1
scriptreplay: add --stream to the man page
[thirdparty/util-linux.git] / term-utils / scriptreplay.1
CommitLineData
1aa1fbae 1.TH SCRIPTREPLAY 1 "September 2011" "util-linux" "User Commands"
e8f26419 2.SH "NAME"
c129767e 3scriptreplay \- play back typescripts, using timing information
e8f26419 4.SH "SYNOPSIS"
fc6b5e0d 5.B scriptreplay
6e72fa59 6[options]
557db9cd 7.RB [ \-t ]
fc6b5e0d
PB
8.I timingfile
9.RI [ typescript
10.RI [ divisor ]]
e8f26419 11.SH "DESCRIPTION"
e8f26419 12This program replays a typescript, using timing information to ensure that
6e72fa59 13output happens in the same rhythm as it originally appeared when the script
18a706bd
KZ
14was recorded.
15.PP
16The replay simply displays the information again; the programs
cf0609a3 17that were run when the typescript was being recorded are \fBnot run again\fR.
18a706bd
KZ
18Since the same information is simply being displayed,
19.B scriptreplay
20is only guaranteed to work properly if run on the same type of
21terminal the typescript was recorded on. Otherwise, any escape characters
22in the typescript may be interpreted differently by the terminal to
23which
24.B scriptreplay
25is sending its output.
e8f26419 26.PP
557db9cd 27The timing information is what
fc6b5e0d 28.BR script (1)
cf0609a3
KZ
29outputs to file specified by
30.BR \-\-log-timing .
e8f26419 31.PP
1aa1fbae
SK
32By default, the typescript to display is assumed to be named
33.BR typescript ,
557db9cd 34but other filenames may be specified, as the second parameter or with option
cf0609a3 35.BR \-\-log\-out .
e8f26419 36.PP
cf0609a3
KZ
37If the third parameter or
38.BR \-\-divisor
39is specified, it is used as a speed-up multiplier.
557db9cd 40For example, a speed-up of 2 makes
18a706bd 41.B scriptreplay
557db9cd 42go twice as fast, and a speed-up of 0.1 makes it go ten times slower
18a706bd 43than the original session.
178365ef 44.SH OPTIONS
cf0609a3
KZ
45.TP
46.BR \-I , " \-\-log-in " \fIfile\fR
47File containing \fBscript\fR's terminal input.
48.TP
49.BR \-O , " \-\-log-out " \fIfile\fR
50File containing \fBscript\fR's terminal output.
51.TP
52.BR \-B , " \-\-log-io " \fIfile\fR
53File containing \fBscript\fR's terminal output and input.
ed66f515 54.TP
557db9cd 55.BR \-t , " \-\-timing " \fIfile\fR
cf0609a3 56File containing \fBscript\fR's timing output. This option overrides old-style arguments.
ed66f515 57.TP
557db9cd 58.BR \-s , " \-\-typescript " \fIfile\fR
cf0609a3
KZ
59File containing \fBscript\fR's terminal output. Deprecated alias to \fB\-\-log-out\fR.
60This option overrides old-style arguments.
ed66f515 61.TP
88b8e9bf
KZ
62.BR \-c , " \-\-cr\-mode " \fImode\fR
63Specifies how to use CR (0x0D, carriage return) character from log files.
64The default mode is "auto", in this case CR is replaced with line break for
65stdin log, because otherwise scriptreplay will overwrite the same line.
66The another modes are "never" and "always".
67.TP
557db9cd 68.BR \-d , " \-\-divisor " \fInumber\fR
1aa1fbae
SK
69Speed up the replay displaying this
70.I number
71of times. The argument is a floating point number. It's called divisor
cf0609a3 72because it divides the timings by this factor. This option overrides old-style arguments.
178365ef 73.TP
7f1d4836 74.BR \-m , " \-\-maxdelay " \fInumber\fR
6e72fa59 75Set the maximum delay between transcript updates to
7f1d4836 76.I number
6e72fa59 77of seconds. The argument is a floating point number. This can be used to
7f1d4836
JDN
78avoid long pauses in the transcript replay.
79.TP
70315772
KZ
80.BR \-x , " \-\-stream " \fItype\fR
81Forces scriptreplay to print only specified stream. The supported stream types
82are 'in' or 'out'. This option is recommended for multi-stream logs (e.g. --log-io)
83to print only specified data.
84.TP
178365ef 85.BR \-V , " \-\-version"
557db9cd 86Display version information and exit.
178365ef
SK
87.TP
88.BR \-h , " \-\-help"
b4362b6f 89Display help text and exit.
e8f26419 90.SH "EXAMPLE"
1aa1fbae 91.nf
cf0609a3 92% script --log-timing file.tm --log-out script.out
1aa1fbae
SK
93Script started, file is script.out
94% ls
95<etc, etc>
96% exit
97Script done, file is script.out
cf0609a3 98% scriptreplay --timing file.tm --log-out script.out
1aa1fbae 99.nf
ffc43748 100.SH "SEE ALSO"
ffc43748 101.BR script (1)
e8f26419 102.SH "COPYRIGHT"
18a706bd 103Copyright \(co 2008 James Youngman
1aa1fbae 104.br
cf0609a3 105Copyright \(co 2008-2019 Karel Zak
18a706bd
KZ
106.PP
107This is free software; see the source for copying conditions. There is NO
108warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
109PURPOSE.
110.PP
111Released under the GNU General Public License version 2 or later.
e8f26419 112.SH "AUTHOR"
18a706bd
KZ
113The original
114.B scriptreplay
1aa1fbae 115program was written by
79f84818 116.MT joey@\:kitenet.net
1aa1fbae 117Joey Hess
79f84818 118.ME .
1aa1fbae 119The program was re-written in C by
79f84818 120.MT jay@\:gnu.org
1aa1fbae 121James Youngman
79f84818 122.ME
1aa1fbae 123and
79f84818 124.MT kzak@\:redhat.com
1aa1fbae 125Karel Zak
79f84818 126.ME .
86d62711 127.SH AVAILABILITY
9c91fc03 128The scriptreplay command is part of the util-linux package and is available from
d673b74e 129.UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
1aa1fbae
SK
130Linux Kernel Archive
131.UE .