Ports/progress bar

illoai at gmail.com illoai at gmail.com
Wed Apr 4 23:15:51 UTC 2007

On 04/04/07, Olivier Regnier <oregnier at steelbox.org> wrote:
> Hello,
> I tried to use the bar program to show a progress bar in my shell script.
> I tested with this command in console:
> bar -c 'csup -L 0 /root/csup/doc-supfile'
> I see the progress bar but she doesn't work. I think the syntax is
> correct no ?
> For informations, i use Zsh.

If you are using textproc/bar, from reading the webpage
the answer seems to be no.  That bar seems to work as
a substitute for cat(1), or with the -c flag as a wrapper.
Since you are not putting files into the pipe, but rather
pulling them out, bar cannot see the size of the job and
so determine what portion is finished or not.

There also appears to be a misc/clpbar which may be
closer to what you want here.


More information about the freebsd-questions mailing list