dd of=/dev/mtd5 if=/tmp/mnt/sdp1/backup-rootfs.img bs=4096 2> /tmp/ddinfo & pid=$! while [ -n "$(ps -e | grep $pid)" ] do kill -USR1 $pid $T2S -s 2 -H left -y 20 -T 0 -t "$(cat /tmp/ddinfo)" sleep 5 done
I have the script running, but I'm having trouble getting feedback from DD:
I'm guessing something to do with delayed write or somesuch.
What -should- happen is that every 5 seconds, we send a signal to DD, get statistics which are then displayed via T2S/text2screen.
Can anyone help me?