Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-19 Thread Georges Khaznadar
Hello Michael,

Michael Peek a écrit :
 I had no idea that pv existed.  I took a look at it, and they are
 very similar.
 
 There are a few things that bar offers over pv:
 - ANSI color support
 - Configurable progress bar characters

In the manpage I only found the option display-twiddle about it; are
there other options for configuring characters?

 - Configurable I/O select() timeout
 - Ability to use configuration file(s)

This feature is great.

 - Displaying of additional blocks of text read from a file during
 I/O - think information to display to the user during file
 installation - that are updated automatically throughout the I/O
 process (version 1.11.0, yet to be released)

That one will be great too. The version which I can package now is 1.10.9

 
 But there are also features in pv that bar lacks:
 -n, --numeric - Numeric output suitable for piping to dialog

This feature may be important, I planned to use a regexp filter to parse
bar's output, configuring bar to output easier parsed data would be
great.

 -W, --wait - Wait until the first byte has been received before
 printing anything

... and before deciding that the input stream is closed.
This feature can be approximately reached by setting a long timeout
without modifying bar's source.

 -l, --line-mode - Instead of counting bytes, count lines
 -R, --remote - Communicate with another instance of pv to modify it's state
 
 For what it's worth,
 
 Michael Peek

I shall reopen the ITP bug and upload the package.

Best regards,   Georges.


signature.asc
Description: Digital signature


Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-18 Thread Michael Peek
I had no idea that pv existed.  I took a look at it, and they are very 
similar.


There are a few things that bar offers over pv:
- ANSI color support
- Configurable progress bar characters
- Configurable I/O select() timeout
- Ability to use configuration file(s)
- Displaying of additional blocks of text read from a file during I/O - 
think information to display to the user during file installation - 
that are updated automatically throughout the I/O process (version 
1.11.0, yet to be released)


But there are also features in pv that bar lacks:
-n, --numeric - Numeric output suitable for piping to dialog
-W, --wait - Wait until the first byte has been received before printing 
anything

-l, --line-mode - Instead of counting bytes, count lines
-R, --remote - Communicate with another instance of pv to modify it's state

For what it's worth,

Michael Peek

Lars Wirzenius wrote:

Dropped debian-devel from the Cc list.

On ma, 2010-08-16 at 21:57 +0200, Georges Khaznadar wrote:
  

with bar, the replacement would be:
bar -s 4G -if someImageFile -of 
/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0



pv -petrb someImageFile  /dev/disk/...

(Or pipe to sudo dd of=/dev/disk/... if that's better for you,
permissionwise.)

If pv can't figure out the size of the image file, add -s 4G.

I haven't tried bar, but from the description it looks very similar to
pv. As far as I care, both are welcome in Debian, but sometimes it is
sensible to ask if duplicate tools to do the same thing are a good idea.

  





--
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c6c2630.9070...@tiem.utk.edu



Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Georges Khaznadar
Package: wnpp
Severity: wishlist
Owner: Georges Khaznadar georg...@ofset.org


* Package name: bar
  Version : 1.10.9
  Upstream Author : Michael Peek p...@tiem.utk.edu
* URL : http://clpbar.sourceforge.net/
* License : GPL-2
  Programming Lang: C
  Description : Show information about a data transfer

 Bar is a simple tool to process a stream of data and print a display  for
 the  user  on stderr showing (a) the amount of data passed, (b) the
 throughput of the data  transfer,  and, if the total size of the data stream
 is known, (c) estimated time remaining, percent complete, and a progress bar.
 .
 Bar was originally written for the purpose of estimating the amount  of time
 needed to transfer large amounts (many, many gigabytes) of data across a
 network.  (Usually in an SSH/tar pipe.)



-- 
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20100816183621.30628.75249.report...@www.khaznadar.fr



Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Lars Wirzenius
On ma, 2010-08-16 at 20:36 +0200, Georges Khaznadar wrote:
  Bar is a simple tool to process a stream of data and print a display  for
  the  user  on stderr showing (a) the amount of data passed, (b) the
  throughput of the data  transfer,  and, if the total size of the data stream
  is known, (c) estimated time remaining, percent complete, and a progress bar.
  .
  Bar was originally written for the purpose of estimating the amount  of time
  needed to transfer large amounts (many, many gigabytes) of data across a
  network.  (Usually in an SSH/tar pipe.

How does this compare to the pv tool in the package of the same name?





-- 
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1281985819.12989.77.ca...@havelock



Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Don Armstrong

On Mon, 16 Aug 2010, Georges Khaznadar wrote:
  Bar is a simple tool to process a stream of data and print a display  for
  the  user  on stderr showing (a) the amount of data passed, (b) the
  throughput of the data  transfer,  and, if the total size of the data stream
  is known, (c) estimated time remaining, percent complete, and a progress bar.

How does this differ from pv?


Don Armstrong

-- 
Some pirates achieved immortality by great deeds of cruelty or
derring-do. Some achieved immortality by amassing great wealth. But
the captain had long ago decided that he would, on the whole, prefer
to achieve immortality by not dying.
 -- Terry Pratchet _The Color of Magic_

http://www.donarmstrong.com  http://rzlab.ucr.edu



-- 
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100816191044.gx17...@teltox.donarmstrong.com



Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Georges Khaznadar
Don Armstrong a écrit :
 [as a handfull of other vigilant developers]
 How does this [bar] differ from pv?

h...

I used Michael Peek's bar for a few years because I never heard about
pv. Thank you for this notice.

When I read pv's manpage, it appears as more featureful than bar.

I use currently bar to monitor the cloning of USB sticks, as a
replacement of dd to dump 4GB of an image into a flash memory driver.

Is pv able to do the same? for example how can I use pv to monitor the
transfer which is done by modifying a command such as:

dd if=someImageFile of=/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0

with bar, the replacement would be:
bar -s 4G -if someImageFile -of 
/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0

Best regards,   Georges.



signature.asc
Description: Digital signature


Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Peter Samuelson

[Georges Khaznadar]
 Is pv able to do the same? for example how can I use pv to monitor the
 transfer which is done by modifying a command such as:
 
 dd if=someImageFile of=/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0

pv  someImageFile  /dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0


 with bar, the replacement would be:
 bar -s 4G -if someImageFile -of 
 /dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0

pv has a -s option, but there's no need for it in this case, since
fstat() will give it the size of the file on stdin.  You need -s if the
input is a pipe or socket, where fstat() won't work.

Peter



-- 
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100816201516.gj3...@p12n.org



Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Don Armstrong
On Mon, 16 Aug 2010, Georges Khaznadar wrote:
 Don Armstrong a écrit :
  [as a handfull of other vigilant developers]
  How does this [bar] differ from pv?
 
 I used Michael Peek's bar for a few years because I never heard
 about pv. Thank you for this notice.

No problem.[1]
 
 Is pv able to do the same? for example how can I use pv to monitor the
 transfer which is done by modifying a command such as:
 
 dd if=someImageFile of=/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0

pv someImageFile  /dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0

if you wanted to use dd, you'd do something like:

pv someImageFile | dd of=/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0
 
You could also use dcfldd:

dcfldd if=someImageFile of=/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0

or a more complicated example with pv and dd

dd if=/dev/zero bs=1M count=500 | pv -s 500m -N dd | gzip - | pv -cN gzip  
/dev/null


Don Armstrong

1: I don't have an opinion on whether you should or shouldn't package
bar, so long as if you do, you make it obvious why you'd use it
instead of pv.
-- 
When I was a kid I used to pray every night for a new bicycle. Then I 
realized that the Lord doesn't work that way so I stole one and asked
Him to forgive me.
 -- Emo Philips.

http://www.donarmstrong.com  http://rzlab.ucr.edu



--
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100816203048.gz17...@teltox.donarmstrong.com



Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Lars Wirzenius
Dropped debian-devel from the Cc list.

On ma, 2010-08-16 at 21:57 +0200, Georges Khaznadar wrote:
 with bar, the replacement would be:
 bar -s 4G -if someImageFile -of 
 /dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0

pv -petrb someImageFile  /dev/disk/...

(Or pipe to sudo dd of=/dev/disk/... if that's better for you,
permissionwise.)

If pv can't figure out the size of the image file, add -s 4G.

I haven't tried bar, but from the description it looks very similar to
pv. As far as I care, both are welcome in Debian, but sometimes it is
sensible to ask if duplicate tools to do the same thing are a good idea.




-- 
To UNSUBSCRIBE, email to debian-wnpp-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1281989595.12989.98.ca...@havelock



Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Georges Khaznadar
Lars Wirzenius a écrit :
 I haven't tried bar, but from the description it looks very similar to
 pv. As far as I care, both are welcome in Debian, but sometimes it is
 sensible to ask if duplicate tools to do the same thing are a good idea.

Bar is sufficiently close to pv in terms of functionnality, so it seems
not worth to be added as a package. I shall modify my other utilities
which depended on bar, to depend on pv.

Best regards,   Georges.

-- 
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70



signature.asc
Description: Digital signature


Bug#593260: ITP: bar -- Show information about a data transfer

2010-08-16 Thread Georges Khaznadar
Thank you for all the feedback about pv (and bar).

I shall close this bugreport and I won't upload bar.

Best regards,   Georges.

Don Armstrong a écrit :
 On Mon, 16 Aug 2010, Georges Khaznadar wrote:
  Don Armstrong a écrit :
   [as a handfull of other vigilant developers]
   How does this [bar] differ from pv?
  
  I used Michael Peek's bar for a few years because I never heard
  about pv. Thank you for this notice.
 
 No problem.[1]
  
  Is pv able to do the same? for example how can I use pv to monitor the
  transfer which is done by modifying a command such as:
  
  dd if=someImageFile of=/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0
 
 pv someImageFile  /dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0
 
 if you wanted to use dd, you'd do something like:
 
 pv someImageFile | dd of=/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0
  
 You could also use dcfldd:
 
 dcfldd if=someImageFile 
 of=/dev/disk/by-id/usb-TheNiceStick_0878101B77D1D977-0:0
 
 or a more complicated example with pv and dd
 
 dd if=/dev/zero bs=1M count=500 | pv -s 500m -N dd | gzip - | pv -cN gzip  
 /dev/null
 
 
 Don Armstrong
 
 1: I don't have an opinion on whether you should or shouldn't package
 bar, so long as if you do, you make it obvious why you'd use it
 instead of pv.
 -- 
 When I was a kid I used to pray every night for a new bicycle. Then I 
 realized that the Lord doesn't work that way so I stole one and asked
 Him to forgive me.
  -- Emo Philips.
 
 http://www.donarmstrong.com  http://rzlab.ucr.edu
 

-- 
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70



signature.asc
Description: Digital signature