LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-19-2005, 06:18 AM   #1
mehro
LQ Newbie
 
Registered: Sep 2005
Location: Pakistan
Posts: 19

Rep: Reputation: 0
ping -c not working properly


i am using linux kernel 2.4.25 ,i am using command ping website name which is working while when i use the command ping -c website name it give msg bad packet size and when i write command ping -s website name it also doesnt work and give me the list of options we can use the ping.
 
Old 09-19-2005, 06:27 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
You need to put a number after -c ( count ) .
ping -c 3 yahoo.com
 
Old 09-19-2005, 06:28 AM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Welcome to LQ!

The switch "-c" stands for count, so you must use a number, i.e.:
Code:
bruce@titus:~$ ping -c www.google.com
ping: bad number of packets to transmit.
bruce@titus:~$ ping -c1 www.google.com
PING www.l.google.com (64.233.161.104) 56(84) bytes of data.
64 bytes from 64.233.161.104: icmp_seq=1 ttl=239 time=70.4 ms

--- www.l.google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 70.472/70.472/70.472/0.000 ms
The switch "-s" stands for size. In a terminal issue "man ping" and read the options.

Last edited by Bruce Hill; 09-19-2005 at 06:30 AM.
 
Old 09-19-2005, 06:31 AM   #4
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
To elaborate a bit, if you're seeking a continous ping, use
Code:
ping example.com
with no other arguments.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
openMosix not working properly DAChristen29 Linux - Networking 0 12-30-2004 07:03 PM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 10:46 AM
SUID not working properly everythingand2 Linux - General 1 02-27-2004 12:42 PM
Can't get NFS working properly Scruff Linux - Networking 8 02-08-2004 10:55 PM
virtusertable not working properly Manuel-H Linux - General 0 04-30-2003 08:38 AM


All times are GMT -5. The time now is 08:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration