Reputation: 778
In order to track progress of particular process. I want to show progress bar with percentage of completion of process. Please advise, is it possible to use pop-up to show progress bar like windows or pop-up with specific message.
Please advise.
Thanks
Upvotes: 0
Views: 581
Reputation: 17420
I know two simple tools for the purpose:
The tool zenity
allows to create GUI progress bar from shell script, e.g. zenity --progress --auto-close
. The zenity
is often preinstalled on many Linux systems. The tool starts, and shows the GUI progress bar, while on stdin it expects percentage of completion. E.g.:
seq 0 20 100 | while read X; do sleep 1; echo $X; done |
zenity --progress --auto-close
The pv
tool ("Pipe Viewer") can be used as a replacement for the cat
but with the perk that it shows a progress bar in text mode indicating the amount/speed of data passing through the pv
. One has to install it, as normally it is not preinstalled. For example, to add progress bar to decompression of large archive:
pv large.tar.bz2 | tar -xjf -
Upvotes: 1