Pinging in the terminal

tk4two1

Professional Crastinator
Whenever I use the ping command in the terminal it keeps pinging and pinging forever. Is there an argument to this command that stops the ping after a few tries?:confused:
 
not at my mac for the moment, but in freebsd 4.6 its

ping -c 5

the 5 being the number of times you want it to attempt the ping. If this doesn't work on your mac, check out the manpage

man ping
 
Why is it that I always for get about the man pages? I need to remember this a lot more often.
 
Just in case you were perturbed by this because you couldn't stop it, in the terminal CONTROL-C stops almost anything: man reading, top, ping, etc.
 
Back
Top