From owner-freebsd-questions Wed Mar 13 13:18: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tninet.se (sheridan.tninet.se [195.100.94.102]) by hub.freebsd.org (Postfix) with ESMTP id B41C537B404 for ; Wed, 13 Mar 2002 13:18:02 -0800 (PST) Received: from cs.umu.se (h27n1c1o1023.bredband.skanova.com [213.64.164.27]) by sheridan.tninet.se (BMR ErlangTM/OTP 3.0) with ESMTP id 605025.54278.1016.0s6429159sheridan ; Wed, 13 Mar 2002 22:17:58 +0100 Message-ID: <3C8FC206.FD02D555@cs.umu.se> Date: Wed, 13 Mar 2002 22:17:58 +0100 From: Paul Everlund X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: sv,en MIME-Version: 1.0 To: "E. J. Cerejo" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Script to hangup ppp? References: <3C8FBDA1.6020206@yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "E. J. Cerejo" wrote: > > I'm being disconecting from the internet by first checking the pid # > using " #cat /var/run/tun0.pid and then " kill " does anyone have a > script to all of this automatically? Try: kill `cat /var/run/tun0.pid` And from there the step isn't far away to do the following (in tcsh): alias kp kill `cat /var/run/tun0.pid` Typing kp and hitting enter is now killing your ppp. If you want to use another more descriptive name than kp, then feel free to do that. :-) Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message