プログラマ 福重 伸太朗 〜基本へ帰ろう〜 このページをアンテナに追加 RSSフィード

2011-06-24

Pipe Viewer : monitoring the progress

What

Pipe Viewer is a terminal-based tool for monitoring the progress of data through a pipeline.

Install(for i386)

wget http://pipeviewer.googlecode.com/files/pv-1.2.0-1.i386.rpm
sudo rpm -i pv-1.2.0-1.i386.rpm

other version : http://en.sourceforge.jp/projects/freshmeat_pv/releases/

Check install

% pv --version
pv 1.2.0 - Copyright(C) 2010 Andrew Wood <andrew.wood@ivarch.com>

Web site: http://www.ivarch.com/programs/pv.shtml

This program is free software, and is being distributed under the
terms of the Artistic License 2.0.

This program 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.

How to use pv

don't use pv.

% gzip access.log > access.log.gz

use pv.

% pv access.log | gzip > access.log.gz
 520MB 0:00:08 [65.1MB/s] [================>                                            ] 28% ETA 0:00:19

other

% man pv

Refarence