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
14 originally 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
22 typescript before it is executed by scriptlive.
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 is
26 what script1 outputs to file specified by --log-in or --log-io.
27
29 -I, --log-in file
30 File containing script's terminal input.
31
32 -B, --log-io file
33 File containing script's terminal output and input.
34
35 -t, --timing file
36 File containing script's timing output. This option overrides
37 old-style arguments.
38
39 -T, --log-timing file
40 Aliased to -t, maintained for compatibility with script(1)
41 command-line options.
42
43 -d, --divisor number
44 Speed up the replay displaying this number of times. The argument
45 is a floating-point number. It’s called divisor because it divides
46 the timings by this factor. This option overrides old-style
47 arguments.
48
49 -m, --maxdelay number
50 Set the maximum delay between updates to number of seconds. The
51 argument is a floating-point number. This can be used to avoid long
52 pauses in the typescript replay.
53
54 -h, --help
55 Display help text and exit.
56
57 -V, --version
58 Print version and exit.
59
61 % script --log-timing file.tm --log-in script.in
62 Script started, file is script.out
63 % date
64 <etc, etc>
65 % exit
66 Script done, file is script.out
67 % scriptlive --log-timing file.tm --log-in script.in
68
70 Karel Zak <kzak@redhat.com>
71
73 Copyright © 2019 Karel Zak
74
75 This is free software; see the source for copying conditions. There is
76 NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
77 PURPOSE.
78
79 Released under the GNU General Public License version 2 or later.
80
82 script(1), scriptreplay(1)
83
85 For bug reports, use the issue tracker at
86 https://github.com/util-linux/util-linux/issues.
87
89 The scriptlive command is part of the util-linux package which can be
90 downloaded from Linux Kernel Archive
91 <https://www.kernel.org/pub/linux/utils/util-linux/>.
92
93
94
95util-linux 2.38.1 2022-05-11 SCRIPTLIVE(1)