From owner-freebsd-questions Thu Feb 15 17:23:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA10775 for questions-outgoing; Thu, 15 Feb 1996 17:23:30 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA10762 for ; Thu, 15 Feb 1996 17:23:24 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id SAA03582; Thu, 15 Feb 1996 18:19:31 -0700 From: Terry Lambert Message-Id: <199602160119.SAA03582@phaeton.artisoft.com> Subject: Re: Telling if User PPP is up or down To: wsantee@wsantee.oz.net (Wes Santee) Date: Thu, 15 Feb 1996 18:19:31 -0700 (MST) Cc: terry@lambert.org, jerry@border.com, questions@freebsd.org In-Reply-To: <199602160007.QAA05357@wsantee.oz.net> from "Wes Santee" at Feb 15, 96 04:07:23 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk > > > Call me bind, BUT, How is this going to tell if the dial-on-demand > > > feature has the line currently in use. > > > > replace "ppp" with the name of the program that is running the link. > > > > If the program that is there when the link is there is present, then > > the link is up. > > With the user-process PPP daemon, however, the program can still be > in memory even if the link is off-line. It sits there waiting for > outbound traffic to be generated in which case, it brings up the > link again. IOW, there is never going to be a time when the program > that is running the link isn't going to be in the 'ps' listings, even > if the link is currently off-line. > > Thanks for trying to help out, though. I (and some others who have > e-mailed me privately), am still looking for answers if you've got > 'em! How about "look at the modem CD light"? 8-). 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...). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.