4 ms·
Ever wanted to know the progress of a long running operation? Copying a file, importing a mysql db, etc. Pipe Viewer (pv) is what you need: http://www.ivarch.co
by bretthopper 15y ago
Ever wanted to know the progress of a long running operation? Copying a file, importing a mysql db, etc. Pipe Viewer (pv) is what you need: http://www.ivarch.com/programs/pv.shtml http://www.ivarch.com/programs/pv.shtml.
It lets you monitor the progress of any piped command and gives you time elapsed, speed, time left, and a progress bar (wget style).
Copy a file:
pv sourcefile > destfile
Import mysql db:
pv dump.sql| mysql -uroot -p db
More tricks: http://blog.urfix.com/9-tricks-pv-pipe-viewer/ http://blog.urfix.com/9-tricks-pv-pipe-viewer/
edit: To install on OS X just do
brew install pv
- brendano 15y agoPipe Viewer dramatically increased my productivity for large scale data processing. In particular, it lets you quickly know whether something will take 5 minutes, or 2 hours, so you can plan accordingly. It's painful watching people try to do this without pv.