1TCPCONNECT(1)               General Commands Manual              TCPCONNECT(1)
2
3
4

NAME

6       tcpconnect - general TCP/IP client
7

SYNOPSIS

9       tcpconnect [-irv] [-l localaddr] host port
10

DESCRIPTION

12       tcpconnect  creates  a  TCP/IP  connection  to  a server running on the
13       machine host, listening to port port.  It then reads standard input and
14       sends  to  the  remote  server,  and  data  received from the server is
15       printed to standard output.  When end-of-file is reached on both  stan‐
16       dard input and the TCP/IP connection, tcpconnect terminates.
17

OPTIONS

19       -i     Terminate  at  end-of-file on standard input; don't wait for the
20              server to close the connection.
21
22       -r     Terminate when the remote server closes  the  connection;  don't
23              wait for end-of-file on standard input.
24
25       -v     Verbose  mode.  Prints a message to standard error when the con‐
26              nection has been established.
27
28       -l addr:port
29              Bind the local end-point of the connection to IP  address  addr,
30              TCP port port.  Either the IP address or the port, but not both,
31              may be left out, meaning  that  the  operating  system  gets  to
32              choose that part by itself.
33

SEE ALSO

35       tcplisten(1), telnet(1), tcpbug(1).
36

BUGS

38       The  names  of  the  options are not yet finalized, and may change at a
39       future release.
40
41
42
43                                 1997 April 13                   TCPCONNECT(1)
Impressum