From owner-freebsd-questions Wed Mar 13 13:12:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts11-srv.bellnexxia.net (tomts11.bellnexxia.net [209.226.175.55]) by hub.freebsd.org (Postfix) with ESMTP id C352337B435 for ; Wed, 13 Mar 2002 13:12:14 -0800 (PST) Received: from scaryg.shacknet.nu ([64.231.142.145]) by tomts11-srv.bellnexxia.net (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020313211214.LVMW19732.tomts11-srv.bellnexxia.net@scaryg.shacknet.nu>; Wed, 13 Mar 2002 16:12:14 -0500 Received: from localhost ([::1] helo=scaryg.shacknet.nu) by scaryg.shacknet.nu with smtp (Exim 3.34 #1) id 16lG40-000KEX-00; Wed, 13 Mar 2002 16:13:36 -0500 Date: Wed, 13 Mar 2002 16:13:33 -0500 From: ScaryG To: "E. J. Cerejo" Cc: freebsd-questions@freebsd.org Subject: Re: Script to hangup ppp? Message-Id: <20020313161333.799f4737.freymann@scaryg.shacknet.nu> In-Reply-To: <3C8FBDA1.6020206@yahoo.com> References: <3C8FBDA1.6020206@yahoo.com> X-Mailer: Sylpheed version 0.7.2 (GTK+ 1.2.10; i386-portbld-freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean 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 On Wed, 13 Mar 2002 15:59:13 -0500 "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? YOu can put that into a script: #!/bin/sh # disconnect ppp kill `cat /var/run/tun0.pid` Notice the back arrows.. Put an entry in your crontab to run the script, voila. Make sure you chmod +x scriptname as well. -gerry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message