[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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to