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 the
21 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
28 typescript, but other filenames may be specified, as the second
29 parameter 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 go
33 twice as fast, and a speed-down 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 This is an alias for -t, maintained for compatibility with
52 script(1) command-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 the CR (0x0D, carriage return) character from
60 log files. The default mode is auto, in this case CR is replaced
61 with line break for stdin log, because otherwise scriptreplay would
62 overwrite the same line. The other modes are never and always.
63
64 -d, --divisor number
65 Speed up the replay displaying this number of times. The argument
66 is a floating-point number. It’s called divisor because it divides
67 the timings by this factor. This option overrides old-style
68 arguments.
69
70 -m, --maxdelay number
71 Set the maximum delay between updates to number of seconds. The
72 argument is a floating-point number. This can be used to avoid long
73 pauses in the typescript replay.
74
75 --summary
76 Display details about the session recorded in the specified timing
77 file and exit. The session has to be recorded using advanced format
78 (see script(1) option --logging-format for more details).
79
80 -x, --stream type
81 Forces scriptreplay to print only the specified stream. The
82 supported stream types are in, out, signal, or info. This option is
83 recommended for multi-stream logs (e.g., --log-io) in order to
84 print only specified data.
85
86 -h, --help
87 Display help text and exit.
88
89 -V, --version
90 Print version and exit.
91
93 % script --log-timing file.tm --log-out script.out
94 Script started, file is script.out
95 % ls
96 <etc, etc>
97 % exit
98 Script done, file is script.out
99 % scriptreplay --log-timing file.tm --log-out script.out
100
102 The original scriptreplay program was written by Joey Hess
103 <joey@kitenet.net>. The program was re-written in C by James Youngman
104 <jay@gnu.org> and Karel Zak <kzak@redhat.com>
105
107 Copyright © 2008 James Youngman
108
109 Copyright © 2008-2019 Karel Zak
110
111 This is free software; see the source for copying conditions. There is
112 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
113 PURPOSE.
114
115 Released under the GNU General Public License version 2 or later.
116
118 script(1), scriptlive(1)
119
121 For bug reports, use the issue tracker at
122 https://github.com/util-linux/util-linux/issues.
123
125 The scriptreplay command is part of the util-linux package which can be
126 downloaded from Linux Kernel Archive
127 <https://www.kernel.org/pub/linux/utils/util-linux/>.
128
129
130
131util-linux 2.39.2 2023-06-14 SCRIPTREPLAY(1)