[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

Reply via email to