REPLAY(1) User Contributed Perl Documentation REPLAY(1)
名前
scriptreplay - タイミング情報を使って写し (typescript) を再生する
書式
scriptreplay timingfile [typescript [divisor]]
説明
このプログラムはタイミング情報を使って写しを再生する。このタイミング情
報により、以前に script で記録したときと同じスピードで出力が行われるこ
とが保証される。 script で記録を行ったのと同じ端末で実行したときにしか
、正しく動作することが保証されない。
タイミング情報は、-t パラメータをつけて script を実行したときに、標準エ
ラーに出力される。
デフォルトでは、表示される写しは "typescript" という名前であると仮定さ
れるが、第 2 パラメータで他のファイルを指定することもできる。
第 3 パラメータが存在する場合は、時間の除数 (divisor) として使われる。
例えば除数 2 を指定すると、写しは 2 倍の速度で再生される。
例
% script -t 2> timingfile
スクリプトを開始しました、ファイルは typescript です
% ls
REPLAY(1) User Contributed Perl Documentation REPLAY(1)
NAME
scriptreplay - play back typescripts, using timing information
SYNOPSIS
scriptreplay timingfile [typescript [divisor]]
DESCRIPTION
This program replays a typescript, using timing information to ensure
that output happens at the same speed as it originally appeared when
the script was recorded.
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, scriptreplay 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
scriptreplay is sending its output.
The timings information is what script(1) outputs to standard error if
it is run with the -t parameter.
By default, the typescript to display is assumed to be named "type-
script", but other filenames may be specified, as the second parameter.
If the third parameter is specified, it is used as a speed-up multi-
plier. For example, a speed-up of 2 makes scriptreplay go twice as fast
and a speed-up of 0.1 makes it go ten times slower than the original
session.
EXAMPLE
% script -t 2> timingfile
Script started, file is typescript
% ls
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa