At least as of 10.6, the -W is a timeout in milliseconds for each ping.
64 bytes from 74.53.14.75: icmp_seq=0 ttl=49 time=45.693 ms
64 bytes from 74.53.14.75: icmp_seq=1 ttl=49 time=45.540 ms
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 45.540/45.617/45.693/0.076 ms
Yuna:~ cadamson$
If it's not on 10.5, then I have another problem, but it seems like if it works on the 10.6 command-line, it should work in a build script too.
Thanks for the quick reply.
--Chris
On Jan 29, 2010, at 10:48 AM, Chris Devers wrote:
What is `ping -W` supposed to do?
On my 10.5.8 system here, that flag isn't in the manpage or the -h
text, and it doesn't seem to do anything useful on the command line
either.
Maybe the ping is always failing because -W forces an error?