Allow -r to be used with -l and -n to get lines per second
From Roland Kletzing Roland.Kletzing@cybercon.de in 2016
hello,
is there a way to print the current "lines per second" rate line by line, to be able to log it into a file?
unfortunately, i don`t find any option.
wht comes close is adding -b -n , but it`s not lines/sec i get but absolute line number counted so far.
this is the command i use for testing:
find / | pv -i1 -lr >/dev/null
i`d like output like this:
[root@backupvm1 zfspool]# find / |pv -i1 -lrbn >/dev/null
238k/s
407k/s
231k/s
...
is this possible somehow or is this a missing feature ?
There is currently no way to do this with PV.
I tried passing a target number of lines with "-s" so that the output was in
percent, which might help, but that seems to be buggy when we go past 100%.
Perhaps if "-l" and "-r" were both given, then lines/sec should be output.
I will add this to the TODO list.
Do you have a web site I can link to in the acknowledgements section of the
documentation?
thanks very much.
please, if you like to add me to the ack. section just put in my name without anything else.
regards
roland
From Roland Kletzing <Roland.Kletzing@cybercon.de> in 2016 hello, is there a way to print the current "lines per second" rate line by line, to be able to log it into a file? unfortunately, i don`t find any option. wht comes close is adding -b -n , but it`s not lines/sec i get but absolute line number counted so far. this is the command i use for testing: find / | pv -i1 -lr >/dev/null i`d like output like this: [root@backupvm1 zfspool]# find / |pv -i1 -lrbn >/dev/null 238k/s 407k/s 231k/s ... is this possible somehow or is this a missing feature ? ---- There is currently no way to do this with PV. I tried passing a target number of lines with "-s" so that the output was in percent, which might help, but that seems to be buggy when we go past 100%. Perhaps if "-l" and "-r" were both given, then lines/sec should be output. I will add this to the TODO list. Do you have a web site I can link to in the acknowledgements section of the documentation? ---- thanks very much. please, if you like to add me to the ack. section just put in my name without anything else. regards roland