blob: edd46f2315d72a782ca2f33a4cc0a478e936f559 (
plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
.TH tcp-env 1
.SH NAME
tcp-env \- set up TCP-related environment variables
.SH SYNOPSIS
.B tcp-env
[
.B \-rR
]
[
.B \-t\fItimeout
]
.I program
[
.I arg ...
]
.SH DESCRIPTION
The input for
.B tcp-env
must be a TCP connection.
.B tcp-env
finds out information about that connection,
puts the information into several environment variables
as described in
.B tcp-environ(5),
and runs
.I program
with the given arguments.
Usually
.B tcp-env
is run from
.BR inetd .
It might instead be run from another server
that already sets up the right environment variables;
if
.B PROTO
is set to
.B TCP
when
.B tcp-env
is invoked,
.B tcp-env
assumes that all the other variables are set up properly,
and it does not check whether the input is a TCP connection.
.SH OPTIONS
.TP
.B \-r
(Default.)
Attempt to obtain
.B TCPREMOTEINFO
from the remote host.
.TP
.B \-R
Do not attempt to obtain
.B TCPREMOTEINFO
from the remote host.
.TP
.B \-t\fItimeout
Give up on the
.B TCPREMOTEINFO
connection attempt after
.I timeout
seconds.
Default: 30.
.SH "SEE ALSO"
tcp-environ(5),
inetd(8)
|