Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 1996 09:24:26 -0500
From:      Jerry Kendall <jerry@border.com>
To:        Wes Santee <wsantee@wsantee.oz.net>
Cc:        Wes Santee <wsantee@wsantee.oz.net>, questions@freebsd.org
Subject:   Re: Solution: Telling if User PPP is up or down
Message-ID:  <96Feb16.092643est.20481-2@janus.border.com>
In-Reply-To: <199602160811.AAA20475@wsantee.oz.net>

next in thread | previous in thread | raw e-mail | index | archive | help


Well it seems that the reply that I sent out yesterday morning sometime 
did not get to you.....

I said, and I quote!!!!!!!!!!
 
Call me bind, BUT, How is this going to tell if the dial-on-demand
feature has the line currently in use.
 
Should you NOT check for a current lock file first..????

---------

Pretty simple....


On Fri, 16 Feb 1996, Wes Santee wrote:

> 
> Wes Santee sez:
> > 
> > Terry Lambert sez:
> > > Or "ifconfig tun0", and if it reports an "inet" line (if it doesn't,
> > > it has never been up), check it for 0.0.0.0 (and make sure it gets
> > > upt back correctly by pppd when it downs...).
> > 
> > Someone else mentioned in e-mail to take a look at ifconfig and see
> > what it will tell me.  I'll give it a shot.
> 
> Well, that didn't do it, but upon further exploration of the PPP man
> page, it says that when the process is locking the com port, it
> creates a lock-file as /var/spool/lock/LCK..<com name> where <com
> name> is something like cuaa0, cuaa1, etc.  As it turns out, when
> the link is up, the lockfile exists, and when the link is down, it
> is removed.
> 
> Cheers,
> -- 
> ( -Wes Santee <wsantee@wsantee.oz.net>  |                                )
> (             <wsantee@oz.net> (backup) | No one told you when to run... )
> ( http://www.oz.net/~wsantee            \------------------------------- )
> ( finger for PGP info                                 Powered by FreeBSD )
> 

--------------------------------------------------------------------------------

Any comments or opinions in this message are my own and may or may not reflect
the comments or opinions of my present or previous employers.

                    Jerry Kendall      Border Network Technologies Inc.
         System Software Engineer      Tel +1-416-368-7157 ext 303
                 jerry@border.com      Fax +1-416-368-7178






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96Feb16.092643est.20481-2>