From owner-freebsd-questions Fri Feb 16 07:24:48 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA09925 for questions-outgoing; Fri, 16 Feb 1996 07:24:48 -0800 (PST) Received: from jack.Colorado.EDU (jack.Colorado.EDU [128.138.149.29]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id HAA09917 for ; Fri, 16 Feb 1996 07:24:45 -0800 (PST) Received: from jack (localhost [127.0.0.1]) by jack.Colorado.EDU (8.7.3/8.7.3/CNS-4.0) with SMTP id IAA24403 for ; Fri, 16 Feb 1996 08:21:41 -0700 (MST) Message-ID: <3124A104.2C42@Colorado.EDU> Date: Fri, 16 Feb 1996 08:21:40 -0700 From: "Mark G. M. O'Lear" Organization: University of Colorado X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m) MIME-Version: 1.0 To: questions@freebsd.org Subject: Re: Solution: Telling if User PPP is up or down References: <199602160811.AAA20475@wsantee.oz.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk What about ifconfig -au? It only returns a list of interfaces that are up. ifconfig -a lists all with their up/down status as well. 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 ) -- Mark G. M. O'Lear Mark.Olear@Colorado.EDU