From owner-freebsd-questions Thu Jun 13 18:34:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA23545 for questions-outgoing; Thu, 13 Jun 1996 18:34:57 -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 SAA23539 for ; Thu, 13 Jun 1996 18:34:54 -0700 (PDT) Received: (from cp_nairn@localhost) by wedge.its.utas.edu.au (8.7.1/8.6.6) id LAA00877; Fri, 14 Jun 1996 11:34:49 +1000 (EST) Date: Fri, 14 Jun 1996 11:34:48 +1000 (EST) From: Carey Nairn X-Sender: cp_nairn@wedge.its.utas.edu.au To: FreeBSD Questions Subject: User PPP question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. 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. TIA Carey ========================================================================= 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. ! =========================================================================