Matthew Burgess wrote:
>  iputils was mentioned by Ag
> Hatzim, and is what my host (ubuntu) uses.  Unfortunately, the very
> first thing I see in the Makefile (and what caused my initial
> compilation attempt to fail) is:
> 
> KERNEL_INCLUDE=/usr/src/linux/include
> 
> Ouch!  It wants /usr/src/linux!

Yes, that is a problem.  However the iputils version of ping is much
better than that of inetutils.  For instance, the inet version does not
have an option (-W) to set the time to wait for a ping.  That is very
useful in writing a script to ping a set of hosts:

!/bin/bash

function pingit
{
  #ping -W1 -c1 $1
  count=`ping -W1 -c1 $1|tail -n2|head -n1|cut -d" " -f4`
  if [ $count -ne 0 ]; then
    echo "$1 OK $2"
  else
    echo "$1 - no ping $2"
  fi
}

pingit 192.168.1.4 "sys1"
pingit 192.168.1.5 "sys2"

etc.

  -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to