|
bash progress bar (freebsd/ portsdb -Uu)
here is the situation
running
#portsdb -Uu
on freebsd takes a while, and doesn't give you a progress status, but
if you type
#ps | grep "DIRPR"
you get back what folder it is currently on
5650 p1 IL+ 0:01.27 make -B describe DIRPRFX=net/
22050 p1 IL+ 0:00.07 make -B describe DIRPRFX=science/
so what i want to be able to do is have a script that polls this command and lets you know how far along portsdb is by checking what the DIRPRFX is and where it is in the alphabet.
Any help would be greatly appreciated
Thanks in advance
|