From owner-freebsd-questions Tue May 30 19:29:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mrs-3.smartworld.net (mrs-3.smartworld.net [216.70.64.34]) by hub.freebsd.org (Postfix) with ESMTP id 008AD37B655 for ; Tue, 30 May 2000 19:29:15 -0700 (PDT) (envelope-from dnormandin@freewwweb.com) Received: from odie (cust82.tnt1.dial.cal1.uunet.ca [209.167.219.82]) by mrs-3.smartworld.net (8.9.1a/8.9.1) with SMTP id WAA36998; Tue, 30 May 2000 22:29:17 -0400 (EDT) Message-ID: <000801bfcaa8$598702c0$52dba7d1@odie> From: "Duke Normandin" To: "Salvo Bartolotta" Cc: Subject: Re: How to close a ppp connection? Date: Tue, 30 May 2000 20:31:31 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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..... -duke To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message