1SCRIPTREPLAY(1) User Commands SCRIPTREPLAY(1)
2
3
4
6 scriptreplay - play back typescripts, using timing information
7
9 scriptreplay [options] [-t] timingfile [typescript [divisor]]
10
12 This program replays a typescript, using timing information to ensure
13 that output happens in the same rhythm as it originally appeared when
14 the script was recorded.
15
16 The replay simply displays the information again; the programs that
17 were run when the typescript was being recorded are not run again.
18 Since the same information is simply being displayed, scriptreplay is
19 only guaranteed to work properly if run on the same type of terminal
20 the typescript was recorded on. Otherwise, any escape characters in
21 the typescript may be interpreted differently by the terminal to which
22 scriptreplay is sending its output.
23
24 The timing information is what script(1) outputs to file specified by
25 --log-timing.
26
27 By default, the typescript to display is assumed to be named type‐
28 script, but other filenames may be specified, as the second parameter
29 or with option --log-out.
30
31 If the third parameter or --divisor is specified, it is used as a
32 speed-up multiplier. For example, a speed-up of 2 makes scriptreplay
33 go twice as fast, and a speed-up of 0.1 makes it go ten times slower
34 than the original session.
35
37 -I, --log-in file
38 File containing script's terminal input.
39
40 -O, --log-out file
41 File containing script's terminal output.
42
43 -B, --log-io file
44 File containing script's terminal output and input.
45
46 -t, --timing file
47 File containing script's timing output. This option overrides
48 old-style arguments.
49
50 -T, --log-timing file
51 aliast to -t, maintained for compatibility with script (1) com‐
52 mand line options.
53
54 -s, --typescript file
55 File containing script's terminal output. Deprecated alias to
56 --log-out. This option overrides old-style arguments.
57
58 -c, --cr-mode mode
59 Specifies how to use CR (0x0D, carriage return) character from
60 log files. The default mode is auto, in this case CR is
61 replaced with line break for stdin log, because otherwise scrip‐
62 treplay will overwrite the same line. The another modes are
63 never and always.
64
65 -d, --divisor number
66 Speed up the replay displaying this number of times. The argu‐
67 ment is a floating point number. It's called divisor because it
68 divides the timings by this factor. This option overrides old-
69 style arguments.
70
71 -m, --maxdelay number
72 Set the maximum delay between transcript updates to number of
73 seconds. The argument is a floating point number. This can be
74 used to avoid long pauses in the transcript replay.
75
76 --summary
77 Display details about session recorded in the specified timing
78 file and exit. The session has to be recorded by advanced for‐
79 mat (see script(1)) option --logging-format for more details).
80
81 -x, --stream type
82 Forces scriptreplay to print only specified stream. The sup‐
83 ported stream types are in, out, signal, or info. This option
84 is recommended for multi-stream logs (e.g., --log-io) to print
85 only specified data.
86
87 -V, --version
88 Display version information and exit.
89
90 -h, --help
91 Display help text and exit.
92
94 % script --log-timing file.tm --log-out script.out
95 Script started, file is script.out
96 % ls
97 <etc, etc>
98 % exit
99 Script done, file is script.out
100 % scriptreplay --log-timing file.tm --log-out script.out
101
103 script(1), scriptlive(1)
104
106 Copyright © 2008 James Youngman
107 Copyright © 2008-2019 Karel Zak
108
109 This is free software; see the source for copying conditions. There is
110 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
111 PURPOSE.
112
113 Released under the GNU General Public License version 2 or later.
114
116 The original scriptreplay program was written by Joey Hess ⟨joey@
117 kitenet.net⟩. The program was re-written in C by James Youngman ⟨jay@
118 gnu.org⟩ and Karel Zak ⟨kzak@redhat.com⟩.
119
121 The scriptreplay command is part of the util-linux package and is
122 available from Linux Kernel Archive ⟨https://www.kernel.org/pub/linux
123 /utils/util-linux/⟩.
124
125
126
127util-linux October 2019 SCRIPTREPLAY(1)