News for hackers. Stuff that matters.
Re:Pipe Viewer by ralph on Thursday May 24, 2012 @05:04PM (#4020555)
Note, a plain dd will report progress on stderr if sent a SIGUSR1. That can sometimes be enough to avoid the overhead of pv(1) and sending huge amounts of data through another pipe.
Re:Pipe Viewer by protopete on Thursday May 24, 2012 @05:32PM (#4020683)
About the pv overhead, I sent a note to the pv author saying that on Linux at least the transfer function could take advantage of the splice system call. Splice "copies" data from one file descriptor to another file descriptor, avoiding having to copy the data from the kernel to userspace and back.
Re:Pipe Viewer by Erwin on Thursday May 24, 2012 @07:36PM (#4021149)
On FreeBSD (and maybe Mac OS X) you can press Control-T to send a SIGINFO signal (non-standard extension. This prints out how far dd has gotten (and perhaps other FreeBSD utilities too).
Re:Pipe Viewer by there on Thursday May 24, 2012 @11:35PM (#4021765)
You may need to setup your terminal to do that with:

    stty status '^T'
fsck also responds to SIGINFO by printing its status. I had to hack up rsync to do it (http://jcs.org/patches/rsync-show_current_file.diff), and I wish more utilities supported it by default.
Re:Pipe Viewer by sneak on Friday May 25, 2012 @05:03AM (#4022659)
N.B. also that dd on osx will EXIT IMMEDIATELY if sent a SIGUSR1. It double-sucks because one tends to do this on long-running dd processes that you're wondering are done yet...