How can I make the ping command in Mac OS X show "request timeout" in its output if no ICMP replies are received, similar to what the Windows ping command does?

link|improve this question
feedback

2 Answers

up vote -2 down vote accepted

This is probably what you are looking for:

ping -v host.com
link|improve this answer
This doesn't add a time out. – Richard Hoskins Sep 3 '09 at 15:40
Andrew S answered my question. The following is my trial. Thanks -- $ ping -v 192.168.97.3 PING 192.168.97.3 (192.168.97.3): 56 data bytes ping: sendto: No route to host ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down – user9639 Sep 3 '09 at 16:20
feedback

You can set a time out with the -t option. e.g.

 ping -t 5 microsoft.com

This will exit after five seconds wether the target is alive or not.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown