[lug] Unsuccessful Ping

Nate Duehr nate at natetech.com
Wed Feb 7 01:51:53 MST 2001


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...

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
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

-- 
Nate Duehr <nate at natetech.com>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.



More information about the LUG mailing list