LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stop the ping command! (http://www.linuxquestions.org/questions/linux-newbie-8/stop-the-ping-command-573196/)

nahawand 07-29-2007 01:55 PM

Stop the ping command!
 
Hi,

I have slackware and to test my connection, I typed: ping www.google.ca

How do I stop it? I tried everything that normally would work. Q, q, escape, shift escape, ctrl shift backspace...nothing works..

How do I stop the ping command in slackware?

stress_junkie 07-29-2007 01:59 PM

Press the control key and the letter c at the same time.

salasi 07-29-2007 02:43 PM

Quote:

Originally Posted by nahawand
How do I stop the ping command in slackware?

I know this doesn't help once you have made the mistake, but it is worth noting that you can limit the number (& rate) of pings when you issue the ping command. So:

ping -c 10 www.google.ca

would set the ping count to 10, so it would only do 10 pings and then stop. And:

ping -i 5 www.google.ca

would set a ping interval of 5 seconds. And you can combine these:

ping -c 1000 -i 10 www.google.ca

would send a ping once every 10 seconds for 1000 pings. In other words "I'd quite like it to keep pinging at a relatively slow rate, but I don't want it to go on forever, just in case I forget about it". Useful if you are waggling all the CAT 5 connectors to see if an intermittent in one of those is causing your network to fail.

If you are round the back of your machine, examining the way entropy turns organised cables into knotted spaghetti at the time, the -a switch (audible) may be worth looking at too. That way, you'll really get to hear why it is called 'ping'. All of this, and much else, brought to you by courtesy of 'man pages'!

nahawand 07-29-2007 03:05 PM

Stress_Junkie, thank you for the fast response. And thank you for the detailed explanation salasi.

Quote:

All of this, and much else, brought to you by courtesy of 'man pages'!
Yes. I deserve that! Alas though, when I installed Slackware, I only installed the A and N diskettes. Thats why whenever i type: man command, i get: command not found.

I'll have to install the diskette with the man pages.

Thanks guys.

salasi 07-30-2007 01:23 AM

Quote:

Originally Posted by nahawand
Yes. I deserve that! Alas though, when I installed Slackware, I only installed the A and N diskettes. Thats why whenever i type: man command, i get: command not found.

I'll have to install the diskette with the man pages.

Thanks guys.

Sorry, it wasn't really intended as a criticism, but a gentle bit of fun. Guess I'll have to get used to using these :rolleyes: things. More seriously, I couldn't cope with a system without man pages and that's how I've learnt most of the specifics that I've learnt, so I would definitely say that you should install the man pages, if you can.


All times are GMT -5. The time now is 12:17 AM.