[lug] Unsuccessful Ping

SoloCDM deedsmis+ackm at aculink.net
Thu Feb 8 21:36:04 MST 2001


Nate Duehr stated the following:
> 
> ping -w (on versions that work anyway, the default ping in RH 6.2
> doesn't work right) is useful for scripting when you're expecting
> complete loss of the link also...

There is no -w:

ping: invalid option -- -
usage: ping [-LRdfnqrv] [-c count] [-i wait] [-l preload]
	[-p pattern] [-s packetsize] [-t ttl] [-I interface address] host

> On Thu, Feb 01, 2001 at 10:03:51AM -0700, SoloCDM wrote:
> > I'm using the following to check for an unsuccessful ping, but if
> > the line is open and bottlenecked enough to return a hundred percent
> > loss, then the ping will return a false identity.  Any suggestions?
> >
> > ping -c 4 -R mail.aculink.net > search-opening-data 2>&1;
> > MOKAY=`egrep -ie packets search-opening-data | gawk -F " " '{print
> > $7}'`; if [ "${MOKAY}" = "100%" ]
> >
> >
> > Ignore the omittance of the remaining "if" statement.

Note: When you reply to this message, please include the mailing
      list/newsgroup address in Cc: and my email address in To:.

*********************************************************************
Signed,
SoloCDM



More information about the LUG mailing list