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-run 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 newly created pseudo terminal with user's
17 $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 aliast to -t, maintained for compatibility with script (1) com‐
42 mand line options. -d, --divisor number Speed up the replay
43 displaying this number of times. The argument is a floating
44 point number. It's called divisor because it divides the tim‐
45 ings by this factor. This option overrides old-style arguments.
46
47 -m, --maxdelay number
48 Set the maximum delay between transcript updates to number of
49 seconds. The argument is a floating point number. This can be
50 used to avoid long pauses in the transcript replay.
51
52 -V, --version
53 Display version information and exit.
54
55 -h, --help
56 Display help text and exit.
57
59 % script --log-timing file.tm --log-in script.in
60 Script started, file is script.out
61 % date
62 <etc, etc>
63 % exit
64 Script done, file is script.out
65 % scriptlive --log-timing file.tm --log-in script.in
66
68 script(1), scriptreplay(1)
69
71 Copyright © 2019 Karel Zak
72
73 This is free software; see the source for copying conditions. There is
74 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
75 PURPOSE.
76
77 Released under the GNU General Public License version 2 or later.
78
80 Karel Zak ⟨kzak@redhat.com⟩.
81
83 The scriptlive command is part of the util-linux package and is avail‐
84 able from Linux Kernel Archive ⟨https://www.kernel.org/pub/linux/utils
85 /util-linux/⟩.
86
87
88
89util-linux October 2019 SCRIPTLIVE(1)