]> git.ipfire.org Git - thirdparty/util-linux.git/blob - term-utils/scriptreplay.1
scriptreplay: (man) add missing --log-* oprions
[thirdparty/util-linux.git] / term-utils / scriptreplay.1
1 .TH SCRIPTREPLAY 1 "September 2011" "util-linux" "User Commands"
2 .SH "NAME"
3 scriptreplay \- play back typescripts, using timing information
4 .SH "SYNOPSIS"
5 .B scriptreplay
6 [options]
7 .RB [ \-t ]
8 .I timingfile
9 .RI [ typescript
10 .RI [ divisor ]]
11 .SH "DESCRIPTION"
12 This program replays a typescript, using timing information to ensure that
13 output happens in the same rhythm as it originally appeared when the script
14 was recorded.
15 .PP
16 The replay simply displays the information again; the programs
17 that were run when the typescript was being recorded are \fBnot run again\fR.
18 Since the same information is simply being displayed,
19 .B scriptreplay
20 is only guaranteed to work properly if run on the same type of
21 terminal the typescript was recorded on. Otherwise, any escape characters
22 in the typescript may be interpreted differently by the terminal to
23 which
24 .B scriptreplay
25 is sending its output.
26 .PP
27 The timing information is what
28 .BR script (1)
29 outputs to file specified by
30 .BR \-\-log-timing .
31 .PP
32 By default, the typescript to display is assumed to be named
33 .BR typescript ,
34 but other filenames may be specified, as the second parameter or with option
35 .BR \-\-log\-out .
36 .PP
37 If the third parameter or
38 .BR \-\-divisor
39 is specified, it is used as a speed-up multiplier.
40 For example, a speed-up of 2 makes
41 .B scriptreplay
42 go twice as fast, and a speed-up of 0.1 makes it go ten times slower
43 than the original session.
44 .SH OPTIONS
45 .TP
46 .BR \-I , " \-\-log-in " \fIfile\fR
47 File containing \fBscript\fR's terminal input.
48 .TP
49 .BR \-O , " \-\-log-out " \fIfile\fR
50 File containing \fBscript\fR's terminal output.
51 .TP
52 .BR \-B , " \-\-log-io " \fIfile\fR
53 File containing \fBscript\fR's terminal output and input.
54 .TP
55 .BR \-t , " \-\-timing " \fIfile\fR
56 File containing \fBscript\fR's timing output. This option overrides old-style arguments.
57 .TP
58 .BR \-s , " \-\-typescript " \fIfile\fR
59 File containing \fBscript\fR's terminal output. Deprecated alias to \fB\-\-log-out\fR.
60 This option overrides old-style arguments.
61 .TP
62 .BR \-d , " \-\-divisor " \fInumber\fR
63 Speed up the replay displaying this
64 .I number
65 of times. The argument is a floating point number. It's called divisor
66 because it divides the timings by this factor. This option overrides old-style arguments.
67 .TP
68 .BR \-m , " \-\-maxdelay " \fInumber\fR
69 Set the maximum delay between transcript updates to
70 .I number
71 of seconds. The argument is a floating point number. This can be used to
72 avoid long pauses in the transcript replay.
73 .TP
74 .BR \-V , " \-\-version"
75 Display version information and exit.
76 .TP
77 .BR \-h , " \-\-help"
78 Display help text and exit.
79 .SH "EXAMPLE"
80 .nf
81 % script --log-timing file.tm --log-out script.out
82 Script started, file is script.out
83 % ls
84 <etc, etc>
85 % exit
86 Script done, file is script.out
87 % scriptreplay --timing file.tm --log-out script.out
88 .nf
89 .SH "SEE ALSO"
90 .BR script (1)
91 .SH "COPYRIGHT"
92 Copyright \(co 2008 James Youngman
93 .br
94 Copyright \(co 2008-2019 Karel Zak
95 .PP
96 This is free software; see the source for copying conditions. There is NO
97 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
98 PURPOSE.
99 .PP
100 Released under the GNU General Public License version 2 or later.
101 .SH "AUTHOR"
102 The original
103 .B scriptreplay
104 program was written by
105 .MT joey@\:kitenet.net
106 Joey Hess
107 .ME .
108 The program was re-written in C by
109 .MT jay@\:gnu.org
110 James Youngman
111 .ME
112 and
113 .MT kzak@\:redhat.com
114 Karel Zak
115 .ME .
116 .SH AVAILABILITY
117 The scriptreplay command is part of the util-linux package and is available from
118 .UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
119 Linux Kernel Archive
120 .UE .