Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 1996 11:34:48 +1000 (EST)
From:      Carey Nairn <cp_nairn@cc.utas.edu.au>
To:        FreeBSD Questions <questions@freebsd.org>
Subject:   User PPP question
Message-ID:  <Pine.SOL.3.91.960614111939.542D-100000@wedge.its.utas.edu.au>

next in thread | raw e-mail | index | archive | help
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.         !
=========================================================================






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.960614111939.542D-100000>