Move files with zenity progress bar
I’m playing with a script that moves files between two directories and does that by piping two tar commands, so called Fast Copy.
You need zenity to see the progress bar, it is a work in progress as there are some bugs, eg when you click “cancel” the two tar child processes are not killed for some reason, I couldn’t get the correct exit code that probably gets lost somewhere.
Probably in the future I’ll write a better notification.Suggestions and modifications are wellcome.
Please note that this script will not move files with a starting dot in their name (for example .bashrc).
It’s because on line 81 you write * as a parameter to tar, and on line 86 is also * as a parameter to mv.
Bud
23 lug 11 at 00:29
Maybe you add a “zenity” tag?
Ikem
22 gen 13 at 22:14