[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ping



peter@easthope.ca wrote:
> root@joule:/home/root# /bin/ping -c 3  192.168.0.12
> PING 192.168.0.12 (192.168.0.12) 56(84) bytes of data.
> 64 bytes from 192.168.0.12: icmp_seq=1 ttl=64 time=0.079 ms
> 64 bytes from 192.168.0.12: icmp_seq=2 ttl=64 time=0.114 ms
> 64 bytes from 192.168.0.12: icmp_seq=3 ttl=64 time=0.113 ms
> 
> --- 192.168.0.12 ping statistics ---
> 3 packets transmitted, 3 received, 0% packet loss, time 2041ms
> rtt min/avg/max/mdev = 0.079/0.102/0.114/0.016 ms
> root@joule:/home/root# echo $PATH
> /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
> root@joule:/home/root# which ping
> /bin/ping
> root@joule:/home/root# ping -c 3  192.168.0.12
> 
> No response.
> 
> Ideas?

Strange that "which ping" is reporting /bin/ping and not /usr/bin/ping as first executable. The strange thing is that /usr/bin/ping is locate before /bin/ping in your $PATH and both are the same files in a standard installation (the inodes are identical).

So I assume, there is something utterly broken with your system (or your report), because of this.

But my hottest solution in your report is an alias.
Having an alias of ping will never be reported by "which" neither. So I can imaging you've defined ping as an alias.
And as Greg said, try "type ping" to find this out (and not "which ping").

Best regards,
	Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27


Reply to: