tcpsocket - create a TCP socket and run a program
tcpsocket [options] host port program [arguments]
tcpserver creates a TCP socket, binds it to host and port and runs program with the remaining arguments.
options is a is a series of getopt or getopt_long style options. See below for more information.
The socket is described by host and port. host may be 0, allowing connections to any local IP address; or a dotted-decimal IP address, allowing connections only to that address; or a host name, allowing connections to the first IP address for that host. Host names are fed through qualification using DNS_IP4_qualify. port may be a name from /etc/services or a number; if it is 0, tcpsocket will choose a free TCP port.
On some systems, N is silently limited to 5. On systems supporting SYN cookies, the backlog is irrelevant. The default is 20.
If the client is sending packets along an IP source route, send packets back along the same route.
A client can still use source routing to connect and to send data, but packets will be sent back along the default route. This is the default.
N is an integer in the range from 0 to a system ``dependent limit. The default is to not move it. Note that moving the socket to file descriptor 2 may disturb the output of error messages.
tcpsocket will switch to that group id after the socket has been set up. GID has to be a positive integer.
tcpsocket will switch to that user id after the socket has been set up. UID has to be a positive integer.
Usually used together with envuidgid.
Do not look up the local host name in the DNS. This information is used for log files and the environment variable IODP_n_LOCALNAME
This is used for $IODP_n_SYMNAME, and may be used by IODP compliant application in an application dependant way. The default is to not set it.
This is the default.
The use with an argument shows the long helptext of that option, without an argument it will list all options.
The use with an argument shows the long help for this option, without arguments it shows the long description of all options.
tcpsocket sets the environment variables documented in the iodp-tcp specification.
tcpsocket 0 119 \ setuidgid news \ env - PATH="$PATH:/news/bin" TMPDIR=/news/tmp SHELL=/bin/sh \ LOGNAME=news USER=news HOME=/news \ /news/bin/innd
unknown.
Uwe Ohse