home         email




[ tcping ]

tcping does a TCP connect to the given ip/port combination. The user can specify a timeout in seconds. This is useful in shell scripts running in firewalled environments. Often SYNs are just being dropped by firewalls, thus connection establishment will be retried several times (for minutes) until a TCP timeout is reached. With tcping it is possible to check first if the desired port is reachable and then start connection establishment.

Exit codes are:
Syntax is: tcping [-q] [-t timeout_sec] [-u timeout_usec] <ip addr> <port>


Download:

tcping runs under Linux, OpenBSD, Solaris 7/8/9, Solaris 2.6, AIX, and maybe others. Just try.

History:

$Id: tcping.html,v 1.8 2004/11/10 13:29:44 kirchner Exp $ kirchner@stud-fh.heilbronn.de