[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

[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.


Reply to: