1SCRIPTLIVE(1) User Commands SCRIPTLIVE(1)
2
3
4
6 scriptlive - re-run session typescripts, using timing information
7
9 scriptlive [options] [-t] timingfile [-I|-B] typescript
10
12 This program re-runs a typescript, using stdin typescript and timing
13 information to ensure that input happens in the same rhythm as it orig‐
14 inally appeared when the script was recorded.
15
16 The session is executed in a newly created pseudoterminal with the
17 user's $SHELL (or defaults to /bin/bash).
18
19 Be careful! Do not forget that the typescript may contains arbitrary
20 commands. It is recommended to use "scriptreplay --stream in --log-in
21 typescript" (or with --log-io instead of --log-in to verify the type‐
22 script before it is executed by scriptlive(1).
23
24 The timing information is what script(1) outputs to file specified by
25 --log-timing. The typescript has to contain stdin information and it
26 is what script(1) outputs to file specified by --log-in or --log-io.
27
28
30 -I, --log-in file
31 File containing script's terminal input.
32
33 -B, --log-io file
34 File containing script's terminal output and input.
35
36 -t, --timing file
37 File containing script's timing output. This option overrides
38 old-style arguments.
39
40 -T, --log-timing file
41 Aliased to -t, maintained for compatibility with script(1) com‐
42 mand-line options.
43
44 -d, --divisor number
45 Speed up the replay displaying this number of times. The argu‐
46 ment is a floating-point number. It's called divisor because it
47 divides the timings by this factor. This option overrides old-
48 style arguments.
49
50 -m, --maxdelay number
51 Set the maximum delay between updates to number of seconds. The
52 argument is a floating-point number. This can be used to avoid
53 long pauses in the typescript replay.
54
55 -V, --version
56 Display version information and exit.
57
58 -h, --help
59 Display help text and exit.
60
62 % script --log-timing file.tm --log-in script.in
63 Script started, file is script.out
64 % date
65 <etc, etc>
66 % exit
67 Script done, file is script.out
68 % scriptlive --log-timing file.tm --log-in script.in
69
71 Karel Zak ⟨kzak@redhat.com⟩.
72
74 Copyright © 2019 Karel Zak
75
76 This is free software; see the source for copying conditions. There is
77 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
78 PURPOSE.
79
80 Released under the GNU General Public License version 2 or later.
81
83 script(1), scriptreplay(1)
84
86 The scriptlive command is part of the util-linux package and is avail‐
87 able from Linux Kernel Archive ⟨https://www.kernel.org/pub/linux/utils
88 /util-linux/⟩.
89
90
91
92util-linux October 2019 SCRIPTLIVE(1)