ok, i've come up with a horrendous hack. this makes a gui progress dialog, but it's not very accurate...and the dialog takes a while to pop up...and the copy seems to finish with the gui showing only 25% completion...not quite what i'm looking for. any ideas are greatly appreciated. peace.
Code:
#!/bin/bash
source=bigfile
dest=out
(
fullsize="$(ls -l $source | awk '{print $5}')"
size="0"
while [ "$size" -lt "$fullsize" ] ; do
sleep 2
size="$(ls -l $dest | awk '{print $5}')"
progress="$(echo $size $fullsize | awk '{print 100*$1/$2}')"
echo $progress
done
) | zenity --progress --percentage=0 --auto-close & cp $source $dest