Skip to main content

Thread: Zenity Progress Bar


is possible combine zenity progress bar:

code:
zenity --progress --title="getting md5 checksum" --pulsate --auto-kill --auto-close --text "it's doing it, alright?"
with md5sum command?

code:
userfilemd5=$(md5sum $userfile | cut -d" " -f1)
some of files check can take awhile quite large , no visual representation imagine else thinking command isn't running.

have tried these , neither works:

code:
userfilemd5=$(md5sum $userfile | cut -d" " -f1) | zenity --progress --title="getting md5 checksum" --pulsate --auto-kill --auto-close --text "it's doing it, alright?"
code:
(userfilemd5=$(md5sum $userfile | cut -d" " -f1)) | zenity --progress --title="getting md5 checksum" --pulsate --auto-kill --auto-close --text "it's doing it, alright?"
and on it's own md5 function works.

code:
userfilemd5=$(md5sum $userfile | cut -d" " -f1)
obviously doing work piping 1 command next not sure what?

in advance.

i use yet dialog, zenity fork/successor , have snippet.

code:
var1=`date`  yad --image=/home/jj/documents/cirrhus9/legal/cirrhus9_logo_blue.png --no-buttons --undecorated --skip-taskbar --timeout=2 function get_snapshots() { var3=`echo -n "ftb snapshots="$(ec2-describe-snapshots -k /path/to/some/secret.pem -c /path/to/some/secret.pem --region us-west-1 | sort -r -k 5 | wc -l)` }  touch /tmp/$$ ( ( echo 1 ; while [ -f /tmp/$$ ] ; sleep 1 ; done ; echo 100 ) | yad --progress --pulsate --auto-close --text="counting snapshots..." --width=150 --title="" --undecorated --no-buttons) & get_snapshots rm /tmp/$$  #output echo -e "$var1\n$var3"| yad --text-info --show-uri --width=300 --height=265 --center --name="ec2 snapshots" --window-icon="/home/jj/documents/favicon.ico" --button=done fi fi
i hope helps.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [other] Zenity Progress Bar


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?