From owner-freebsd-questions Fri Jun 14 04:36:36 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA10274 for questions-outgoing; Fri, 14 Jun 1996 04:36:36 -0700 (PDT) Received: from garion.hq.ferg.com (pm1-28.wmbg.widomaker.com [204.17.220.128]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id EAA10269 for ; Fri, 14 Jun 1996 04:36:33 -0700 (PDT) Received: from localhost.hq.ferg.com (localhost.hq.ferg.com [127.0.0.1]) by garion.hq.ferg.com (8.6.12/8.6.12) with SMTP id HAA07912; Fri, 14 Jun 1996 07:36:45 -0400 Message-Id: <199606141136.HAA07912@garion.hq.ferg.com> X-Authentication-Warning: garion.hq.ferg.com: Host localhost.hq.ferg.com didn't use HELO protocol X-Mailer: exmh version 1.6.7 5/3/96 From: Branson Matheson To: Carey Nairn Cc: FreeBSD-Questions@freebsd.org Subject: Re: User PPP question In-reply-to: Your message of "Fri, 14 Jun 1996 11:34:48 +1000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 14 Jun 1996 07:36:44 -0400 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk -------- Carey Nairn uttered with conviction: >Hi all, > >is there a way of determining whether an interface is connected >(particularly tun0) without trying to send something (e.g. ping >packets) across the interface ? What I want to do is find out if the >interface is currently connected and iff it is then download mail from my >ISP. ifconfig -u | grep tun0 > >The situation is that I run ppp -auto and download mail twice a day out >of cron. The PPP connection is also used intermittently for other things >(WWW browsing etc.) and I would just like to periodically check to see if >I am connected and download mail if I am. This is a little different... You could telnet to localhost 3000 and connect to the ppp process and check the status of the prompt... ppp> means down PPP> means up ============================================================================= Branson Matheson | Ferguson Enterprises | If Pete and Repeat were System Administrator | W: (804) 874-7795 | sittin on a fence and Pete Unix, Perl, WWW | branson@widomaker.com | fell off, who is left?