Il blog di Gas

No comment

Move files with zenity progress bar

with 2 comments

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.

 

 

 

Written by gas

luglio 22nd, 2011 at 4:52 pm

Posted in English,Linux

Tagged with , , ,

2 Responses to 'Move files with zenity progress bar'

Subscribe to comments with RSS or TrackBack to 'Move files with zenity progress bar'.

  1. 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

  2. Maybe you add a “zenity” tag? :)

    Ikem

    22 gen 13 at 22:14

Leave a Reply