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?
This is probably what you are looking for:
ping -v host.com
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.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
5 years ago
3 years ago