Add a rate-limiting example.

This commit is contained in:
Andrew Wood
2024-12-11 21:40:08 +00:00
parent 5efd4d045f
commit 2a93e33d38
2 changed files with 14 additions and 0 deletions
+9
View File
@@ -558,6 +558,15 @@ pv \-\-watchfd 1234
.EE
.in
.PP
Rate-limiting the transfer between two processes in a pipeline, with no
display:
.PP
.in +4
.EX
producer | pv \-\-quiet \-\-rate\-limit 1M | consumer
.EE
.in
.PP
Sending logs to a processing script, showing the most recent line as part of
the progress display:
.PP
+5
View File
@@ -554,6 +554,11 @@ process 1234:
pv --watchfd 1234
Rate-limiting the transfer between two processes in a pipeline, with no
display:
producer | pv --quiet --rate-limit 1M | consumer
Sending logs to a processing script, showing the most recent line as
part of the progress display: