From owner-freebsd-questions Sat Jun 15 06:38:32 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25029 for questions-outgoing; Sat, 15 Jun 1996 06:38:32 -0700 (PDT) Received: from wedge.its.utas.edu.au (cp_nairn@wedge.its.utas.edu.au [131.217.10.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA25022 for ; Sat, 15 Jun 1996 06:38:26 -0700 (PDT) Received: (from cp_nairn@localhost) by wedge.its.utas.edu.au (8.7.1/8.6.6) id XAA15302; Sat, 15 Jun 1996 23:38:20 +1000 (EST) Date: Sat, 15 Jun 1996 23:38:20 +1000 (EST) From: Carey Nairn X-Sender: cp_nairn@wedge.its.utas.edu.au To: Branson Matheson cc: FreeBSD-Questions@freebsd.org Subject: Re: User PPP question In-Reply-To: <199606141136.HAA07912@garion.hq.ferg.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 14 Jun 1996, Branson Matheson wrote: > -------- > > 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 That seems to be the only option at the moment... ========================================================================= Carey Nairn ! email : Carey.Nairn@its.utas.edu.au Networks and Communications ! phone : (002) 20 7419 Information Technology Services ! fax : (002) 20 7898 University of Tasmania. ! =========================================================================