blob: 19eef0a7b6620c8429750a035f2983b56b851479 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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.
Author: Marc Kirchner <mail(at)marc(dash)kirchner(dot)de>
WWW: http://stud.fh-heilbronn.de/~kirchner/tcping/tcping.html
|