Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cp -f $srcfile $dstfile &
- # Check the size every second until both files are the same size
- while [ $dstsize -lt $srcsize ];do
- dstsize=`stat -c %s $dstfile`
- percent=$(((100*$dstsize)/$srcsize))
- echo $percent | dialog --guage "Copying $srcfile to $dstfile" 6 70 0
- sleep 1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement