From owner-freebsd-questions@FreeBSD.ORG Thu Apr 5 11:25:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 885E116A402 for ; Thu, 5 Apr 2007 11:25:12 +0000 (UTC) (envelope-from oregnier@steelbox.org) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by mx1.freebsd.org (Postfix) with SMTP id 0240413C480 for ; Thu, 5 Apr 2007 11:25:11 +0000 (UTC) (envelope-from oregnier@steelbox.org) Received: (qmail 7287 invoked by uid 503); 5 Apr 2007 11:25:33 -0000 Received: (QMFILT: 1.0); 05 Apr 2007 11:25:33 -0000 Received: from unknown (HELO mail155.ha.ovh.net) (213.186.33.59) by 26.mail-out.ovh.net with SMTP; 5 Apr 2007 11:25:33 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2007 11:25:08 -0000 Received: from mac76-2-82-241-6-173.fbx.proxad.net (HELO ?192.168.1.2?) (postmaster@steelbox.org@82.241.6.173) by ns0.ovh.net with SMTP; 5 Apr 2007 11:25:06 -0000 Message-ID: <4614DC9B.7030704@steelbox.org> Date: Thu, 05 Apr 2007 13:25:15 +0200 From: Olivier Regnier User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: "illoai@gmail.com" References: <46141DCE.8020904@steelbox.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Remote: 82.241.6.173 (mac76-2-82-241-6-173.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N Cc: freebsd-questions@freebsd.org Subject: Re: Ports/progress bar X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 11:25:12 -0000 illoai@gmail.com a écrit : > On 04/04/07, Olivier Regnier 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 > http://www.theiling.de/projects/bar.html > 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. > Hello, thank you for your answer. I tested clpbar with this command: csup /root/csup/doc-supfile | bar -s 100m -nan but there is a problem and in console, i have this: 27.0B at 27.0B/s eta: +99:99:99 0% [= ] 27.0B at 27.0B/s eta: +99:99:99 0% [= ] 27.0B at 27.0B/s eta: +99:99:99 0% [= ] 27.0B at 27.0B/s eta: +99:99:99 0% [= ] perhaps, i can't use this program with csup ? Thank you :)