Advertisement
southernswampfrog

Untitled

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