Content-type: text/html
Manpage of tcp-env
tcp-env
Section: User Commands (1)
Index
Return to Main Contents
NAME
tcp-env - set up TCP-related environment variables
SYNOPSIS
tcp-env
[
-rRhH
]
[
-llocalname
]
[
-ttimeout
]
program
[
arg ...
]
DESCRIPTION
The input for
tcp-env
must be a TCP connection.
tcp-env
finds out information about that connection,
puts the information into several environment variables
as described in
tcp-environ(5),
and runs
program
with the given arguments.
Usually
tcp-env
is run from
inetd.
It might instead be run from another server
that already sets up the right environment variables;
if
PROTO
is set to
TCP
when
tcp-env
is invoked,
tcp-env
assumes that all the other variables are set up properly,
and it does not check whether the input is a TCP connection.
OPTIONS
- -r
-
(Default.)
Attempt to obtain
TCPREMOTEINFO
from the remote host.
- -R
-
Do not attempt to obtain
TCPREMOTEINFO
from the remote host.
- -h
-
(Default.)
Look up the remote host name in DNS to set the environment variable
TCPREMOTEHOST.
- -H
-
Do not look up the remote host name in DNS; remove the environment variable
TCPREMOTEHOST.
- -llocalname
-
Do not look up the local host name in DNS; use localname for the environment variable
TCPLOCALHOST.
A common choice for localname is 0.
- -ttimeout
-
Give up on the
TCPREMOTEINFO
connection attempt after
timeout
seconds.
Default: 30.
SEE ALSO
tcp-environ(5),
inetd(8)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 02:13:38 GMT, October 23, 2009