File: delay.1

package info (click to toggle)
delay 1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 180 kB
  • sloc: ansic: 292; makefile: 91
file content (43 lines) | stat: -rw-r--r-- 1,243 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.TH "DELAY" "1" "21 Nov 2018" "Version 1.0" "User Commands
.Dd Nov 21, 2018
.Dt DELAY 1
.Os
.Sh NAME
.Nm delay
.Nd a constant delay generator
.Sh SYNOPSIS
.Nm
.Op Ar -b bufsize
.Op Ar delay
.Sh DESCRIPTION
.Nm
introduces a constant delay between its standard input and its standard output. The data from its stdin will be stored until it has been written to stdout. The required \fBdelay\fP argument specifies the delay time in millisecond.
.Pp
.Nm
supports the following options:
.Pp
delay
        delay is the desired delay time, in milliseconds. The following modifiers are accepted:
        12s means 12 seconds
        12m means 12 minutes
        12h means 12 hours
.Pp
.Fl "b bufsize"
        buffer size stores the data until it has been written to stdout, in bytes. The following modifiers are accepted:
        12k means 12Kb
        12m means 12Mb
        12g means 12Gb 
.Pp
.Sh EXAMPLES
.Pp
.Bd -literal
delay the output of command_A to command_B by 5 seconds:
        $ command_A | delay 5s | command_B
.Pp
delay the output of command_A to command_B by 5 seconds with 10MB buffer:
        $ command_A | delay -b 10m 5s | command_B
.Ed
.Sh AUTHORS
.An Romain Vimont Aq Mt rom@rom1v.com
.Sh HOME
.Em https://github.com/rom1v/delay