Usage: logsave [-v] [-d dir] logfile program
Usage: logsave [-v] [-d dir] logfile program
LOGSAVE(8) LOGSAVE(8) 名前 logsave - コマンドの出力をログファイルに保存する 書式 logsave [ -asv ] logfile cmd_prog [ ... ] 説明 logsave プログラムは、指定された引き数をつけて cmd_prog を実行し、出力 のコピーを logfile に保存する。 logfile を置くディレクトリが存在しな い 場合、書き出せるようになるまで logsave は出力をメモリ内に蓄えておく。出 力のコピーは標準出力にも書き出される。 cmd_prog が 1 個のハイフン (’-’) の場合、 logsave は、プログラムを実 行 する代わりに標準入力から入力を取得し、 logfile に書き出す。 logsave は /var パーティションがマウントされるまで初期ブートスクリプト の出力を保存しておくのに役立つ。そして (/var パーティションがマウントさ れたときに)、出力を /var/log に書き出すことができる。 オプション -a このオプションを指定すると、出力で logfile の現在の内容を置き換 えるのではなく、出力を追加する。 -s このオプションを指定すると、 logsave は control-A (ASCII 001 ま た は Start of Header) と control-B (ASCII 002 または Start of Text) で囲まれた文字列をログファイルに書かないで飛ばす。これによ り、ユーザに対してはプログレスバーの情報をコンソールで見せて、ロ グファイルには書き込まないことが可能になる。 -v このオプションを指定すると、 logsave のユーザへの出力をより詳 細 にできる。 著者 Theodore Ts’o (tytso@mit.edu) 関連項目 fsck(8) E2fsprogs version 1.39 May 2006 LOGSAVE(8)
LOGSAVE(8) LOGSAVE(8) NAME logsave - save the output of a command in a logfile SYNOPSIS logsave [ -asv ] logfile cmd_prog [ ... ] DESCRIPTION The logsave program will execute cmd_prog with the specified argu- ment(s), and save a copy of its output to logfile. If the containing directory for logfile does not exist, logsave will accumulate the out- put in memory until it can be written out. A copy of the output will also be written to standard output. If cmd_prog is a single hyphen (’-’), then instead of executing a pro- gram, logsave will take its input from standard input and save it in logfile logsave is useful for saving the output of initial boot scripts until the /var partition is mounted, so the output can be written to /var/log. OPTIONS -a This option will cause the output to be appended to logfile, instead of replacing its current contents. -s This option will cause logsave to skip writing to the log file text which is bracketed with a control-A (ASCII 001 or Start of Header) and control-B (ASCII 002 or Start of Text). This allows progress bar information to be visible to the user on the con- sole, while not being written to the log file. -v This option will make logsave to be more verbose in its output to the user. AUTHOR Theodore Ts’o (tytso@mit.edu) SEE ALSO fsck(8) E2fsprogs version 1.41.12 May 2010 LOGSAVE(8)
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa