From owner-freebsd-questions Tue May 30 19:43:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from corinth.bossig.com (corinth.bossig.com [208.26.239.66]) by hub.freebsd.org (Postfix) with ESMTP id 5BA0337B981 for ; Tue, 30 May 2000 19:43:51 -0700 (PDT) (envelope-from kstewart@3-cities.com) Received: from 3-cities.com (unverified [208.26.242.155]) by corinth.bossig.com (Rockliffe SMTPRA 4.2.1) with ESMTP id ; Tue, 30 May 2000 19:44:14 -0700 Message-ID: <39347C59.C502122C@3-cities.com> Date: Tue, 30 May 2000 19:43:37 -0700 From: Kent Stewart Organization: BOSSig (BOSS Internet Group) X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Duke Normandin Cc: Salvo Bartolotta , freebsd-questions@FreeBSD.ORG Subject: Re: How to close a ppp connection? References: <000801bfcaa8$598702c0$52dba7d1@odie> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Duke Normandin wrote: > > On Tuesday, May 30, 2000 6:49 PM Salvo Bartolotta wrote: > > >> Background: 3.3R on a standalone box > > > >> ppp / lynx are working great, except that I don't know (read , can't > >find) > >> how to shutdown a connection when I'm through. I use > >`/etc/start_if.tun0` > >> which contain `ppp -auto my_isp` to bring ppp up at boot-time. As it > >is, > >> I have to wait for `set timeout = 300` to kick in, or use `kill -HUP > >"ppp pid" > >> `. > > > >> -sidebar- > >> Buried somewhere deep in /usr/ are html-type docs etc in languages > >other > >> than English which are of no use to me. It is safe to nuke these dir / > >files? > > > >> -duke > > > > > >Hello Duke, > > > >use ``ps ax'' & ``awk'' to feed the kill command ... before reading > >the next line :-)) > > > > > >For the impatient: ps ax | awk '$5 == "ppp" { system("kill " $1)}' > > > >Regards, > >Salvo > > I really don't want to kill ppp --- all I want to do is *disconnect* > from the 'net w/o having to wait for ppp to timeout! Any other ideas? > Thanks..... Read about pppctl. Then add a local domain socket to your ppp.conf. Then, all you have to do is tell it to close. You can setup shell scripts to do the commands. I even have one for "quit all" which shuts ppp down nicely. Kent > > -duke > > 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/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message