http://www.politiker-stopp.de/gfx/politiker-stopp-print.png
Stoppt die Vorratsdatenspeicherung! Jetzt klicken &handeln! Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:

[] dd with progress indicator RSS feed for section Solutions

As some people know, I have somewhat of a feud against the GNU coreutils and their lack of features I'd like to have.

My newest addition to that is the dd progress wrapper.
Since there's no easy way (or at all practible way, for that matter) of having dd(1) print the current progress, I've written a shellscript that wraps around the dd call. Every second, it prints how many bytes have been read, how many bytes have been written, the speed per second (overall, not the last second).
To do that, the wrapper uses dd's builtin functionality to display the amount of read and written blocks when receiving a USR1 signal.
The wrapper also takes into account the conversion rate the user specified (base 10 for kB, MB, GB, etc; and base 2 for k, M, G, etc) instead of always using base 10 and rounding the result up.

Enjoy!


EOF

Back home  clock 13:59:04 19.01.2007 | Permalink | Trackback URI

Tachyon (2009-09-08 16:59:43)

Thanks for this!
It's always ticked me off that people write tools that make no indication they are doing anything. dd is especially frustrating as it's an important tool and it gives ZERO indication it's even working. They can argue all the nonsense they want for not putting in a progress indicator of some kind, but there's no excuse it doesn't at least print dots while it's working.

Thanks for resolving this issue with a workaround.

Tachyon

Leave a comment

Allowed HTML tags: a abbr acronym b blockquote em li ol p strong sub sup u ul

Name


Link (enter mailto:you@address.com for mailaddress, otherwise http:// is implied)


Comment