From owner-freebsd-questions Tue Sep 28 9: 0:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mashie.force9.net (mashie.force9.net [195.166.128.30]) by hub.freebsd.org (Postfix) with SMTP id 82E9F14F42 for ; Tue, 28 Sep 1999 09:00:43 -0700 (PDT) (envelope-from richard@sinclairassoc.force9.co.uk) Received: (qmail 10920 invoked from network); 28 Sep 1999 16:00:38 -0000 Received: from mayfly.plus.net.uk (HELO mayfly.force9.net) (195.166.128.28) by mashie.force9.net with SMTP; 28 Sep 1999 16:00:38 -0000 Received: (qmail 14936 invoked from network); 28 Sep 1999 16:00:37 -0000 Received: from unknown (HELO sparky) (212.56.114.246) by mayfly.plus.net.uk with SMTP; 28 Sep 1999 16:00:37 -0000 From: "Richard Morte" To: "Kent Stewart" Cc: Subject: RE: pppctl configuration Date: Tue, 28 Sep 1999 17:00:35 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <37F0CC7E.1D310253@3-cities.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kent, Many thanks for your reply. Yes, your suggestion works: pppctl /var/run/internet close I have just recompiled the kernel to cut out all the extraneous stuff and I discover the original shell scripts now work. Whether this is through the make depend command or not I have absolutely no idea... The short script in the pppctl man page is also very useful for showing the current status of the connection. I just removed the -p '' bit because I don't use a password to access pppctl. The other effect of recompiling the kernel is that ppp no longer seems to get triggered when I use Netscape for local browsing. It behaves itself until the URL contains http:// etc etc. However, I will still need to do something about this when I come to set up Apache for the local intranet. But that's for another day... Thanks again, ric -----Original Message----- From: Kent Stewart [mailto:kstewart@3-cities.com] Sent: 28 September 1999 15:11 To: Richard Morte Subject: Re: pppctl configuration Richard Morte wrote: > > Hi, > > I would like to be able to control ppp running in -auto mode by using > pppctl, but I cannot get it to work properly. > > The appropriate entries in ppp.conf appear to be: > > set server /var/run/internet "" 0177 # (taken from the FreeBSD Boook) This is what I use. I have a section in ppp.conf called pmdemand and the "set server" line was added at the end of the pmdemand setup. I invoke "ppp -auto -alias pmdemand" to start ppp. > > or, with a password: > > set server /var/tmp/internet "MySecretPassWord 0177 > > to close the connection the following can be issued via a shell script: > > #!/bin/sh > exec pppctl /var/run/internet set timeout 300\;close I haven't used this but I have entered "pppctl /var/run/internet close" on numerous occasions and had it dropped the link. Kent > > But all I get is the message "Socket operation on non-socket". Any ideas > what else I need to do? > > Cheers > > ric > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Kent Stewart Richland, WA mailto:kstewart@3-cities.com http://www.3-cities.com/~kstewart/index.html FreeBSD News http://daily.daemonnews.org/ SETI(Search for Extraterrestrial Intelligence) @ HOME http://setiathome.ssl.berkeley.edu/ Hunting Archibald Stewart, b 1802 in Ballymena, Antrim Co., NIR http://www.3-cities.com/~kstewart/genealogy/archibald_stewart.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message