From owner-freebsd-isp Wed Sep 17 16:33:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA18517 for isp-outgoing; Wed, 17 Sep 1997 16:33:33 -0700 (PDT) Received: from panda.hilink.com.au (panda.hilink.com.au [203.8.15.25]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA18492 for ; Wed, 17 Sep 1997 16:33:27 -0700 (PDT) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id JAA08595; Thu, 18 Sep 1997 09:33:14 +1000 (EST) Date: Thu, 18 Sep 1997 09:33:13 +1000 (EST) From: "Daniel O'Callaghan" To: "Rodney W. Grimes" cc: xiyuan@npc.haplink.co.cn, freebsd-isp@FreeBSD.ORG Subject: Re: sorry to ask a freebsd-question question! In-Reply-To: <199709171427.HAA08519@GndRsh.aac.dev.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > Why? How can I deny the "ps -ax | grep ppp" showing out? > > > > ps -ax | fgrep ppp | fgrep -v fgrep > > Stop with the silliness, just go get pppd's pid(s) from /var/run/ppp*.pid Sigh! It was late at night.... To find the ppp interface of pppd on ttyd0 'cat /var/run/ttyd0.if' To find the pid of the process 'cat /var/run/ppp5.if' So ---- /usr/local/bin/ppppid------ #!/bin/sh I=`cat /var/run/tty$1.if` cat /var/run/$I.pid --------------------------------