From owner-freebsd-questions Fri Feb 16 00:12:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA17841 for questions-outgoing; Fri, 16 Feb 1996 00:12:02 -0800 (PST) Received: from wsantee.oz.net (wsantee.oz.net [204.118.240.207]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA17796 for ; Fri, 16 Feb 1996 00:11:58 -0800 (PST) Received: (from wsantee@localhost) by wsantee.oz.net (8.6.12/8.6.12) id AAA20475; Fri, 16 Feb 1996 00:11:54 -0800 Message-Id: <199602160811.AAA20475@wsantee.oz.net> Subject: Solution: Telling if User PPP is up or down To: wsantee@wsantee.oz.net (Wes Santee) Date: Fri, 16 Feb 1996 00:11:54 -0800 (PST) From: "Wes Santee" Cc: questions@freebsd.org In-Reply-To: <199602160655.WAA17072@wsantee.oz.net> from "Wes Santee" at Feb 15, 96 10:55:35 pm X-Mailer: ELM [version 2.4 PL25 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk 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 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 )