On 13/11/13 18:09, Tixy wrote: > On Wed, 2013-11-13 at 10:37 +1100, Scott Ferguson wrote: >> On 13/11/13 01:40, Andre Majorel wrote: > [...] >>> Unfortunately, GNU dd does not have a --progress option but last >>> time I looked, it responded to signal USR1 by writing its >>> current stats on stderr. So you can use ps to find out the PID >>> of your dd(1) process then kill -USR1 <PID> from time to time to >>> see how far along it is. >> >> >> DD_PID=$(ps -eo pid,comm | awk '$2 == “dd” {print $1}') >> watch kill -USR1 $DD_PID > > Or just use killall which finds process by name for you... > > watch killall -USR1 dd >
Neat. Succinct. Best. I'll use that thanks :) Even better than:- while [ : ] ; do killall -SIGINFO dd && sleep 5 || exit ; done Any of the three can be added to ~./bash_aliases which is where I store a string that launches a nice kdialog gui to show progress. All need to be run in another console after launching the dd the user wants a progress report on. Kind regards -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/528329a6.3010...@gmail.com