From owner-freebsd-questions Fri Nov 3 8: 8:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.generalsearch.net (smtp.generalsearch.net [64.14.229.169]) by hub.freebsd.org (Postfix) with ESMTP id CCD0737B479 for ; Fri, 3 Nov 2000 08:08:35 -0800 (PST) Received: from tonyr.office.generalsearch.net (unknown [63.109.63.65]) by smtp.generalsearch.net (Postfix) with SMTP id 37069FEDC; Fri, 3 Nov 2000 10:08:33 -0600 (CST) From: Anthony Rubin Date: Fri, 3 Nov 2000 10:03:19 -0600 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="US-ASCII" To: Peter , freebsd-questions@freebsd.org References: In-Reply-To: Subject: Re: PPP and Crontabs MIME-Version: 1.0 Message-Id: <00110310031907.11909@tonyr.office.generalsearch.net> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 . 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