Hi,
I am using Openbsd 4.4 GENERIC#1021 and nc to check if a port is open or
not. The command I use is
# /usr/bin/nc -z -w 2 192.168.1.10 80
The command works fine if 192.168.1.10 is up, but if ip is non existing it
takes about 1m15sec to exit.
# time /usr/bin/nc -v -z -w 2 192.168.3.96 80
2009/1/30 jared r r spiegel j...@ice-nine.org:
check the obsd manpage, it is specifically different and does not mention
connects:'
But nc -h gives
-w secs Timeout for connects and final net reads
So I guess obsd nc does not support timeouts for connect and will wait
1m15sec if
2 matches
Mail list logo