man-pages/man1/scriptreplay.1.html
2021-03-31 01:06:50 +01:00

189 lines
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SCRIPTREPLAY</TITLE>
</HEAD><BODY>
<H1>SCRIPTREPLAY</H1>
Section: User Commands (1)<BR>Updated: September 2011<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
scriptreplay - play back typescripts, using timing information
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>scriptreplay</B>
[options]
[<B>-t</B>]
<I>timingfile</I>
[<I>typescript</I>
[<I>divisor</I>]]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
This program replays a typescript, using timing information to ensure that
output happens in the same rhythm as it originally appeared when the script
was recorded.
<P>
The replay simply displays the information again; the programs
that were run when the typescript was being recorded are not run again.
Since the same information is simply being displayed,
<B>scriptreplay</B>
is only guaranteed to work properly if run on the same type of
terminal the typescript was recorded on. Otherwise, any escape characters
in the typescript may be interpreted differently by the terminal to
which
<B>scriptreplay</B>
is sending its output.
<P>
The timing information is what
<B><A HREF="/cgi-bin/man/man2html?1+script">script</A></B>(1)
outputs to standard error if it is
run with the
<B>-t</B>
parameter.
<P>
By default, the typescript to display is assumed to be named
<B>typescript</B>,
but other filenames may be specified, as the second parameter or with option
<B>-s</B>.
<P>
If the third parameter is specified, it is used as a speed-up multiplier.
For example, a speed-up of 2 makes
<B>scriptreplay</B>
go twice as fast, and a speed-up of 0.1 makes it go ten times slower
than the original session.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
The first three options will override old-style arguments.
<DL COMPACT>
<DT id="1"><B>-t</B>,<B> --timing </B><I>file</I>
<DD>
File containing <B>script</B>'s timing output.
<DT id="2"><B>-s</B>,<B> --typescript </B><I>file</I>
<DD>
File containing <B>script</B>'s terminal output.
<DT id="3"><B>-d</B>,<B> --divisor </B><I>number</I>
<DD>
Speed up the replay displaying this
<I>number</I>
of times. The argument is a floating point number. It's called divisor
because it divides the timings by this factor.
<DT id="4"><B>-m</B>,<B> --maxdelay </B><I>number</I>
<DD>
Set the maximum delay between transcript updates to
<I>number</I>
of seconds. The argument is a floating point number. This can be used to
avoid long pauses in the transcript replay.
<DT id="5"><B>-V</B>,<B> --version</B>
<DD>
Display version information and exit.
<DT id="6"><B>-h</B>,<B> --help</B>
<DD>
Display help text and exit.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLE</H2>
<PRE>
% script --timing=file.tm script.out
Script started, file is script.out
% ls
&lt;etc, etc&gt;
% exit
Script done, file is script.out
% scriptreplay --timing file.tm --typescript script.out
</PRE><A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+script">script</A></B>(1)
<A NAME="lbAH">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright &#169; 2008 James Youngman
<BR>
Copyright &#169; 2008 Karel Zak
<P>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
<P>
Released under the GNU General Public License version 2 or later.
<A NAME="lbAI">&nbsp;</A>
<H2>AUTHOR</H2>
The original
<B>scriptreplay</B>
program was written by
Joey Hess
The program was re-written in C by
James Youngman
and
Karel Zak
<A NAME="lbAJ">&nbsp;</A>
<H2>AVAILABILITY</H2>
The scriptreplay command is part of the util-linux package and is available from
Linux Kernel Archive
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="9"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="10"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="11"><A HREF="#lbAF">EXAMPLE</A><DD>
<DT id="12"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="13"><A HREF="#lbAH">COPYRIGHT</A><DD>
<DT id="14"><A HREF="#lbAI">AUTHOR</A><DD>
<DT id="15"><A HREF="#lbAJ">AVAILABILITY</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:26 GMT, March 31, 2021
</BODY>
</HTML>