From owner-freebsd-questions Wed Aug 9 17:29: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from soso.eecs.umich.edu (soso.eecs.umich.edu [141.213.4.24]) by hub.freebsd.org (Postfix) with ESMTP id 14AAA37C0C3 for ; Wed, 9 Aug 2000 17:28:54 -0700 (PDT) (envelope-from binkertn@umich.edu) Received: from localhost (binkertn@localhost) by soso.eecs.umich.edu (8.10.0.Beta10/8.10.0.Beta6) with ESMTP id e7A0SWm21342; Wed, 9 Aug 2000 20:28:34 -0400 (EDT) X-Authentication-Warning: soso.eecs.umich.edu: binkertn owned process doing -bs Date: Wed, 9 Aug 2000 20:28:31 -0400 (EDT) From: Nathan Binkert X-Sender: binkertn@soso.eecs.umich.edu To: justin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: USER PPP In-Reply-To: <000801c00260$657d4b80$668df9d0@hernandez> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG YOu can use ping with a -c option to ping an outside machine. If it fails all pings there will be an error code and you can tell your machine to reconnect. (I'd pick a machine very close to you. Like the first router on the other side of your ppp link.) Something like: #!/bin/sh ping -c 10 some.outside.router && reconnect.command Nathan Binkert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message