*BSD News Article 77571


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!solace!eru.mt.luth.se!bloom-beacon.mit.edu!news.mathworks.com!nntp.primenet.com!news1.best.com!nntp1.best.com!seventek
From: seventek@nntp.best.com (Caffiene Dependent)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Ever backgrounded a ping or gotten fping to work???
Date: 4 Sep 1996 18:32:40 GMT
Organization: Best Internet Communications
Lines: 37
Message-ID: <50ki08$ggm@nntp1.best.com>
References: <507iud$m6r@news-2.csn.net> <3228AC9B.2781E494@www.play-hookey.com>
NNTP-Posting-Host: shellx.best.com
X-Newsreader: TIN [version 1.2 PL2]

Ken Bigelow (kbigelow@www.play-hookey.com) wrote:
: Adrian Goins wrote:
: > 
: > I've got a FRAD that keeps bouncing our frame circuit, but all i have
: > to do it kill and restart the pppd and it works again.  I'd like to be
: > able to background a ping, but it won't do it from a script.  It
: > always suspends or stops.
: > 
: > I tried to compile fping, but it seems too damn tempermental to behave
: > (or even to compile)
: > 
: > Anyone got some nifty solution for this???
: > 
: > Thanks -

: I'm not completely certain just what you have in mind here, but I gater
: it's essentially the same as what I do on my site to verify that my
: connection is still up. If so, you *can* run ping from a script, as long
: as you use its output directly inline. My linechek script runs every 5
: minutes from the cron daemon, and looks like this:

: conn=`ping -c 1 205.252.116.10 | grep "0 packets received"`
: if [ "X${conn}" != "X" ]
: then
: /etc/ppp/ip-down
: fi

Of coures you conld do something  like this in your rc.local:

ping -qi 120 

	This can be backgrounded and will only display data if it cannot
reach the remote host.
If you're doing a ppp -auto this will bring up the connection if it fails
as well.  This leaves you with a maximum of 2 minutes downtime.

	--BEn