1 .TH SCRIPTREPLAY 1 "October 2019" "util-linux" "User Commands"
3 scriptreplay \- play back typescripts, using timing information
12 This program replays a typescript, using timing information to ensure that
13 output happens in the same rhythm as it originally appeared when the script
16 The replay simply displays the information again; the programs
17 that were run when the typescript was being recorded are \fBnot run again\fR.
18 Since the same information is simply being displayed,
20 is only guaranteed to work properly if run on the same type of
21 terminal the typescript was recorded on. Otherwise, any escape characters
22 in the typescript may be interpreted differently by the terminal to
25 is sending its output.
27 The timing information is what
29 outputs to file specified by
32 By default, the typescript to display is assumed to be named
34 but other filenames may be specified, as the second parameter or with option
37 If the third parameter or
39 is specified, it is used as a speed-up multiplier.
40 For example, a speed-up of 2 makes
42 go twice as fast, and a speed-up of 0.1 makes it go ten times slower
43 than the original session.
46 .BR \-I , " \-\-log-in " \fIfile\fR
47 File containing \fBscript\fR's terminal input.
49 .BR \-O , " \-\-log-out " \fIfile\fR
50 File containing \fBscript\fR's terminal output.
52 .BR \-B , " \-\-log-io " \fIfile\fR
53 File containing \fBscript\fR's terminal output and input.
55 .BR \-t , " \-\-timing " \fIfile\fR
56 File containing \fBscript\fR's timing output. This option overrides old-style arguments.
58 .BR \-T , " \-\-log\-timing " \fIfile\fR
59 aliast to \fB\-t\fR, maintained for compatibility with
63 .BR \-s , " \-\-typescript " \fIfile\fR
64 File containing \fBscript\fR's terminal output. Deprecated alias to \fB\-\-log-out\fR.
65 This option overrides old-style arguments.
67 .BR \-c , " \-\-cr\-mode " \fImode\fR
68 Specifies how to use CR (0x0D, carriage return) character from log files.
71 in this case CR is replaced with line break for stdin log, because otherwise
72 scriptreplay will overwrite the same line. The another modes are
77 .BR \-d , " \-\-divisor " \fInumber\fR
78 Speed up the replay displaying this
80 of times. The argument is a floating point number. It's called divisor
81 because it divides the timings by this factor. This option overrides old-style arguments.
83 .BR \-m , " \-\-maxdelay " \fInumber\fR
84 Set the maximum delay between updates to
86 of seconds. The argument is a floating point number. This can be used to
87 avoid long pauses in the typescript replay.
90 Display details about session recorded in the specified timing file and exit. The session has
95 option \fB\-\-logging\-format\fR for more details).
97 .BR \-x , " \-\-stream " \fItype\fR
98 Forces scriptreplay to print only specified stream. The supported stream types
105 This option is recommended for multi-stream logs (e.g., \-\-log-io)
106 to print only specified data.
108 .BR \-V , " \-\-version"
109 Display version information and exit.
111 .BR \-h , " \-\-help"
112 Display help text and exit.
115 % script --log-timing file.tm --log-out script.out
116 Script started, file is script.out
120 Script done, file is script.out
121 % scriptreplay --log-timing file.tm --log-out script.out
127 Copyright \(co 2008 James Youngman
129 Copyright \(co 2008-2019 Karel Zak
131 This is free software; see the source for copying conditions. There is NO
132 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
135 Released under the GNU General Public License version 2 or later.
139 program was written by
140 .MT joey@\:kitenet.net
143 The program was re-written in C by
148 .MT kzak@\:redhat.com
152 The scriptreplay command is part of the util-linux package and is available from
153 .UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/