debian/rules: Use `git' potty wrapper.
[qmail] / tcp-env.1
CommitLineData
2117e02e
MW
1.TH tcp-env 1
2.SH NAME
3tcp-env \- set up TCP-related environment variables
4.SH SYNOPSIS
5.B tcp-env
6[
7.B \-rR
8]
9[
10.B \-t\fItimeout
11]
12.I program
13[
14.I arg ...
15]
16.SH DESCRIPTION
17The input for
18.B tcp-env
19must be a TCP connection.
20.B tcp-env
21finds out information about that connection,
22puts the information into several environment variables
23as described in
24.B tcp-environ(5),
25and runs
26.I program
27with the given arguments.
28
29Usually
30.B tcp-env
31is run from
32.BR inetd .
33It might instead be run from another server
34that already sets up the right environment variables;
35if
36.B PROTO
37is set to
38.B TCP
39when
40.B tcp-env
41is invoked,
42.B tcp-env
43assumes that all the other variables are set up properly,
44and it does not check whether the input is a TCP connection.
45.SH OPTIONS
46.TP
47.B \-r
48(Default.)
49Attempt to obtain
50.B TCPREMOTEINFO
51from the remote host.
52.TP
53.B \-R
54Do not attempt to obtain
55.B TCPREMOTEINFO
56from the remote host.
57.TP
58.B \-t\fItimeout
59Give up on the
60.B TCPREMOTEINFO
61connection attempt after
62.I timeout
63seconds.
64Default: 30.
65.SH "SEE ALSO"
66tcp-environ(5),
67inetd(8)