Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

For some servers:

nc -w 1 -z x.x.x.x 22

doesn't work. It has no response, but is looking like very busy: only ctrl + C can help.

So -w 1 seems to be a useless option, to specify the timeout.

Does somebody know what is going wrong: how specify a real timeout?

share|improve this question
1  
Might be a bit off topic for the apple, might try unix, however. adding nc -w 5 -l 1222 works for me. the timer does not take effect until a connection is made. –  hoss Jul 17 '13 at 14:44
    
I thought it is only issue of apple's version of netcat –  static Jul 17 '13 at 22:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.