Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 1996 23:38:20 +1000 (EST)
From:      Carey Nairn <cp_nairn@cc.utas.edu.au>
To:        Branson Matheson <branson@widomaker.com>
Cc:        FreeBSD-Questions@freebsd.org
Subject:   Re: User PPP question 
Message-ID:  <Pine.SOL.3.91.960615233734.15282E-100000@wedge.its.utas.edu.au>
In-Reply-To: <199606141136.HAA07912@garion.hq.ferg.com>

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






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