From owner-freebsd-questions Fri Feb 16 06:25:43 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA06883 for questions-outgoing; Fri, 16 Feb 1996 06:25:43 -0800 (PST) Received: from border.com (janus.border.com [199.71.190.98]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id GAA06878 for ; Fri, 16 Feb 1996 06:25:41 -0800 (PST) Received: by janus.border.com id <20481-2>; Fri, 16 Feb 1996 09:26:43 -0500 Date: Fri, 16 Feb 1996 09:24:26 -0500 From: Jerry Kendall To: Wes Santee Cc: Wes Santee , questions@freebsd.org Subject: Re: Solution: Telling if User PPP is up or down In-Reply-To: <199602160811.AAA20475@wsantee.oz.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <96Feb16.092643est.20481-2@janus.border.com> Sender: owner-questions@freebsd.org Precedence: bulk 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.. where 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 | ) > ( (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