.\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Copyright (C) 2019, Karel Zak .\" .\" This file is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This file is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" Japanese Version Copyright (c) 2020 Chonan Yoichi .\" all right reserved. .\" Translated (util-linux 2.36) Sat Nov 14 12:05:10 JST 2020 .\" by Chonan Yoichi .\" .TH SCRIPTLIVE 1 "October 2019" util\-linux "User Commands" .SH 名前 scriptlive \- タイミング情報を使って、セッションのタイプスクリプトを再実行する .SH 書式 \fBscriptlive\fP [options] [\fB\-t\fP] \fItimingfile\fP [\fB\-I|\-B\fP] \fItypescript\fP .SH 説明 このプログラムは、タイプスクリプトを再実行する。 その際、標準入力のタイプスクリプトとタイミング情報を使って、 スクリプトが記録されたときの、元の入力動作と同じリズムで、入力が行われるようにする。 .IP "[\fB訳注\fP]" 8 タイプスクリプト (typescript) というのは、\fBscript\fP コマンドで作った端末セッションのログである。\fBscript\fP コマンド関連のマニュアルの中で、ログファイル、タイプスクリプトファイルなどと呼ばれることもある。 \fBscript\fP(1) を参照。 .PP \fBセッションの再実行\fPは、新たに作られる疑似端末でユーザの $SHELL を使って行われる ($SHELL が設定されていない場合は、デフォルトの /bin/bash を使用する)。 .PP \fB気をつけていただきたい!\fP タイプスクリプトには、どんなコマンドが入っているかわかったものではないのだ。 そこで、\fBscriptlive\fP(1) でタイプスクリプトを実行する前に、 それが問題を起こさないことを確かめるために、\fB"scriptreplay \-\-stream in \-\-log\-in typescript"\fP をやっておくことをお勧めする (\fB\-\-log\-in\fP の代わりに \fB\-\-log\-io\fP を使ってもよい。[訳注: なお、このコマンドにはタイミングファイルの指定も必要である])。 .PP タイミング情報とは、\fBscript\fP(1) が \fB\-\-log\-timing\fP で指定されたファイルに出力するもののことだ。\fBscriptlive\fP で使用するタイプスクリプトには、標準入力の情報が含まれていなければならないが、 それは、\fBscript\fP(1) が \fB\-\-log\-in\fP や \fB\-\-log\-io\fP で指定されたファイルに書き出すものである。 .SH オプション .TP \fB\-I\fP,\fB \-\-log\-in \fP\fIfile\fP \fBscript\fP の端末入力を記録しているファイル。 .TP \fB\-B\fP,\fB \-\-log\-io \fP\fIfile\fP \fBscript\fP の端末入力と端末出力を記録しているファイル。 .TP \fB\-t\fP,\fB \-\-timing \fP\fIfile\fP \fBscript\fP のタイミング出力を記録しているファイル。 このオプションは、旧式の引き数に優先する。 .TP \fB\-T\fP,\fB \-\-log\-timing \fP\fIfile\fP \fB\-t\fP オプションの別名である。\fBscript\fP のコマンドラインオプションと名前を合わせるために維持されている。 .TP \fB\-d\fP,\fB \-\-divisor \fP\fInumber\fP 再生の表示を \fInumber\fP 倍にスピードアップする。この引き数 \fInumber\fP は浮動小数点数である。このオプションが divisor (除数) と呼ばれるのは、タイミングをこの要素で割るからである。 このオプションは、旧式の引き数に優先する。 .TP \fB\-m\fP,\fB \-\-maxdelay \fP\fInumber\fP 表示の更新間の待ち時間の最大を \fInumber\fP 秒にする。この引き数 \fInumber\fP は浮動小数点数である。 このオプションを使えば、タイプスクリプトの再生で長い間が明いてしまうのを避けることができる。 .TP \fB\-V\fP,\fB \-\-version\fP バージョン情報を表示して終了する。 .TP \fB\-h\fP,\fB \-\-help\fP ヘルプを表示して終了する。 .SH 用例 .nf % script \-\-log\-timing file.tm \-\-log\-in script.in Script started, file is script.out % date % exit Script done, file is script.out % scriptlive \-\-log\-timing file.tm \-\-log\-in script.in .fi .SH 作者 Karel Zak .SH 著作権 Copyright \(co 2019 Karel Zak .PP This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .PP Released under the GNU General Public License version 2 or later. .SH 関連項目 \fBscript\fP(1), \fBscriptreplay\fP(1) .SH 入手方法 この scriptlive コマンドは、util\-linux パッケージの一部であり、Linux Kernel Archive から入手できる。