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 at the same speed 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 standard error if
25 it is run with the -t parameter.
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 -s.
30
31 If the third parameter is specified, it is used as a speed-up multi‐
32 plier. For example, a speed-up of 2 makes scriptreplay go twice as
33 fast, and a speed-up of 0.1 makes it go ten times slower than the orig‐
34 inal session.
35
37 The first three options will overide old-style arguments.
38
39 -t, --timing file
40 File containing script timing output.
41
42 -s, --typescript file
43 File containing the script terminal output.
44
45 -d, --divisor number
46 Speed up the replay displaying this number of times. The argu‐
47 ment is a floating point number. It's called divisor because it
48 divides the timings by this factor.
49
50 -V, --version
51 Display version information and exit.
52
53 -h, --help
54 Display a help message and exit.
55
57 % script --timing=file.tm script.out
58 Script started, file is script.out
59 % ls
60 <etc, etc>
61 % exit
62 Script done, file is script.out
63 % scriptreplay --timing file.tm --typescript script.out
64
66 script(1)
67
69 Copyright © 2008 James Youngman
70 Copyright © 2008 Karel Zak
71
72 This is free software; see the source for copying conditions. There is
73 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
74 PURPOSE.
75
76 Released under the GNU General Public License version 2 or later.
77
79 The original scriptreplay program was written by Joey Hess ⟨joey@
80 kitenet.net⟩. The program was re-written in C by James Youngman ⟨jay@
81 gnu.org⟩ and Karel Zak ⟨kzak@redhat.com⟩.
82
84 The scriptreplay command is part of the util-linux package and is
85 available from Linux Kernel Archive ⟨ftp://ftp.kernel.org/pub/linux
86 /utils/util-linux/⟩.
87
88
89
90util-linux September 2011 SCRIPTREPLAY(1)