Thread: Zenity Progress Bar
is possible combine zenity progress bar:
with md5sum command?code:zenity --progress --title="getting md5 checksum" --pulsate --auto-kill --auto-close --text "it's doing it, alright?"
some of files check can take awhile quite large , no visual representation imagine else thinking command isn't running.code:userfilemd5=$(md5sum $userfile | cut -d" " -f1)
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?"and on it's own md5 function 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?"
obviously doing work piping 1 command next not sure what?code:userfilemd5=$(md5sum $userfile | cut -d" " -f1)
in advance.
i use yet dialog, zenity fork/successor , have snippet.
i hope helps.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
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [other] Zenity Progress Bar
Ubuntu
Comments
Post a Comment