Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Nov 2000 10:03:19 -0600
From:      Anthony Rubin <tonyr@generalsearch.net>
To:        Peter <peterk@americanisp.net>, freebsd-questions@freebsd.org
Subject:   Re: PPP and Crontabs
Message-ID:  <00110310031907.11909@tonyr.office.generalsearch.net>
In-Reply-To: <Pine.LNX.4.21.0011030811290.15286-100000@oxygen.americanisp.net>
References:  <Pine.LNX.4.21.0011030811290.15286-100000@oxygen.americanisp.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 03 November 2000 09:47 am, Peter wrote:
> Ok here is my setup: 56k dial-up, phone gets disconnected semi-often (call
> waiting,peeps picking it up)
>
> I want a script that will (thru cron) check every thirty minutes if ppp is
> connected or not, if not it will dial via "ppp -ddial isp" if it is, it
> will exit and then in half in hour (thru cron again) check and basically
> do same thing...
> My question: Is there a program/script readily available for this kinda
> thing?
> How do I check if ppp is connected or not?
> Inside cron, what is the exact setup ? (Under minutes just put 30,
> everything else * ?)
> ty.
>
>
> --- www.nul.cjb.net --- The Power to Crash!
> --- www.FreeBSD.org --- The Power to Serve!
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

According to the man page the -ddial option should cause ppp to reestablish a 
connection if it is broken.  You could setup a cron job to do a ping -c 1 
<ipaddresshere>.  That should make it dial again and won't hurt anything if 
you are already connected.
-- 
Anthony Rubin
GeneralSearch.Com, Inc.
tonyr@generalsearch.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00110310031907.11909>