Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bash, zenity progress bar without cancel

Currently developing a small bash script, my needs are a progress bar that doesn't come with a cancel button. I have been looking into the zenity progress bar, but haven't found a way to get rid of the cancel button.

The non-existence of the cancel button is of the essence, since it would completely ruin the means of the progress bar. I saw a terminal-based progress bar around, but since I use zenity dialogs for all other cases, I want to use it for the progress bar as well.

Any idéas how to solve my issue? Any other progress bars around, or is it possible to get rid of the cancel button?

Any help is very appreciated, thanx!

like image 279
Butch Avatar asked Feb 05 '11 14:02

Butch


2 Answers

zenity supports the --no-cancel flag, which removes the cancel button.

For me information see zenity --help-progress.

like image 153
sepp2k Avatar answered Sep 21 '22 18:09

sepp2k


Try this,

sleep 5|tee >(zenity --progress --pulsate --no-cancel --auto-close --text="Please wait...")
like image 27
moe Avatar answered Sep 18 '22 18:09

moe