]> git.ipfire.org Git - thirdparty/util-linux.git/blame - term-utils/scriptlive.1
Manual pages: rename EXAMPLE section to EXAMPLES
[thirdparty/util-linux.git] / term-utils / scriptlive.1
CommitLineData
cb4631fc 1.TH SCRIPTLIVE 1 "October 2019" "util-linux" "User Commands"
5a829806 2.SH NAME
cb4631fc 3scriptlive \- re-run session typescripts, using timing information
5a829806 4.SH SYNOPSIS
cb4631fc
KZ
5.B scriptlive
6[options]
7.RB [ \-t ]
2fb684f0 8.I timingfile
cb4631fc 9.RB [ \-I|\-B ]
2fb684f0 10.I typescript
5a829806 11.SH DESCRIPTION
cb4631fc
KZ
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
b220fad4 48Aliased to \fB\-t\fR, maintained for compatibility with
140f5863 49.BR script (1)
cb4631fc
KZ
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
f48c407c 58Set the maximum delay between updates to
cb4631fc
KZ
59.I number
60of seconds. The argument is a floating point number. This can be used to
f48c407c 61avoid long pauses in the typescript replay.
cb4631fc
KZ
62.TP
63.BR \-V , " \-\-version"
64Display version information and exit.
65.TP
66.BR \-h , " \-\-help"
67Display help text and exit.
3bc92f31 68.SH EXAMPLES
cb4631fc
KZ
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
ade04bb8
MK
78.SH AUTHORS
79.MT kzak@\:redhat.com
80Karel Zak
81.ME .
5a829806 82.SH COPYRIGHT
cb4631fc
KZ
83Copyright \(co 2019 Karel Zak
84.PP
85This is free software; see the source for copying conditions. There is NO
86warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
87PURPOSE.
88.PP
89Released under the GNU General Public License version 2 or later.
ade04bb8
MK
90.SH SEE ALSO
91.BR script (1),
92.BR scriptreplay (1)
cb4631fc
KZ
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 .