Zenity Progress bar example

July 8, 2014 | By | Reply More

Zenity progress bar can be used to show a progress for a running process or command. Here I want to show you an example of the usage of Zenity Progress. The progress dialog supports the following options:
–text=text
Specifies the text that is displayed in the progress dialog.
–percentage=percentage
Specifies the initial percentage that is set in the progress dialog.
–auto-close
Closes the progress dialog when 100% has been reached.
–pulsate
Specifies that the progress bar pulsates until an EOF character is read from standard input. Source

Zenity Progress Dialox Example:

[codesyntax lang=”bash”]

[/codesyntax]

Save the code, make it executable and run it.

zenity progress

Or you can modify the command and use the following example to list all the files and directories. The progress will print any files or folders inside /etc/. Its pretty interesting

[codesyntax lang=”bash”]

[/codesyntax]

zenity progress dialog

Tags: , , ,

Category: Script

Leave a Reply