]> git.ipfire.org Git - thirdparty/util-linux.git/blame - term-utils/scriptlive.1
lsblk: Fall back to ID_SERIAL
[thirdparty/util-linux.git] / term-utils / scriptlive.1
CommitLineData
cb4631fc
KZ
1.TH SCRIPTLIVE 1 "October 2019" "util-linux" "User Commands"
2.SH "NAME"
3scriptlive \- re-run session typescripts, using timing information
4.SH "SYNOPSIS"
5.B scriptlive
6[options]
7.RB [ \-t ]
2fb684f0 8.I timingfile
cb4631fc 9.RB [ \-I|\-B ]
2fb684f0 10.I typescript
cb4631fc
KZ
11.SH "DESCRIPTION"
12This program re-run a typescript, using stdin typescript and timing information to ensure that
13input happens in the same rhythm as it originally appeared when the script
14was recorded.
15.PP
16The \fBsession is executed\fR in newly created pseudo terminal with user's $SHELL
17(or defaults to /bin/bash).
18.PP
19.B Be careful!
20Do not forget that the typescript may contains arbitrary commands.
21It is recommended to use \fB"scriptreplay \-\-stream in \-\-log\-in typescript"\fR
22(or with --log-io instead of --log-in) to verify the typescript before it is executed by
23.BR scriptlive (1).
24.PP
25The timing information is what
26.BR script (1)
27outputs to file specified by
28.BR \-\-log\-timing .
29The typescript has to contain stdin information and it is what
2fb684f0 30.BR script (1)
cb4631fc 31outputs to file specified by
2fb684f0 32.B \-\-log-in
cb4631fc
KZ
33or
34.BR \-\-log\-io .
35
36.SH OPTIONS
37.TP
38.BR \-I , " \-\-log-in " \fIfile\fR
39File containing \fBscript\fR's terminal input.
40.TP
41.BR \-B , " \-\-log-io " \fIfile\fR
42File containing \fBscript\fR's terminal output and input.
43.TP
44.BR \-t , " \-\-timing " \fIfile\fR
45File containing \fBscript\fR's timing output. This option overrides old-style arguments.
46.TP
47.BR \-T , " \-\-log\-timing " \fIfile\fR
48aliast to \fB\-t\fR, maintained for compatibility with
49.B script (1)
50command line options.
51.BR \-d , " \-\-divisor " \fInumber\fR
52Speed up the replay displaying this
53.I number
54of times. The argument is a floating point number. It's called divisor
55because it divides the timings by this factor. This option overrides old-style arguments.
56.TP
57.BR \-m , " \-\-maxdelay " \fInumber\fR
58Set the maximum delay between transcript updates to
59.I number
60of seconds. The argument is a floating point number. This can be used to
61avoid long pauses in the transcript replay.
62.TP
63.BR \-V , " \-\-version"
64Display version information and exit.
65.TP
66.BR \-h , " \-\-help"
67Display help text and exit.
68.SH "EXAMPLE"
69.nf
70% script --log-timing file.tm --log-in script.in
71Script started, file is script.out
72% date
73<etc, etc>
74% exit
75Script done, file is script.out
76% scriptlive --log-timing file.tm --log-in script.in
77.nf
78.SH "SEE ALSO"
79.BR script (1),
80.BR scriptreplay (1)
81.SH "COPYRIGHT"
82Copyright \(co 2019 Karel Zak
83.PP
84This is free software; see the source for copying conditions. There is NO
85warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
86PURPOSE.
87.PP
88Released under the GNU General Public License version 2 or later.
89.SH "AUTHOR"
90.MT kzak@\:redhat.com
91Karel Zak
92.ME .
93.SH AVAILABILITY
94The scriptlive command is part of the util-linux package and is available from
95.UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
96Linux Kernel Archive
97.UE .