Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 1997 09:33:13 +1000 (EST)
From:      "Daniel O'Callaghan" <danny@panda.hilink.com.au>
To:        "Rodney W. Grimes" <rgrimes@GndRsh.aac.dev.com>
Cc:        xiyuan@npc.haplink.co.cn, freebsd-isp@FreeBSD.ORG
Subject:   Re: sorry to ask a freebsd-question question!
Message-ID:  <Pine.BSF.3.91.970918092754.818R-100000@panda.hilink.com.au>
In-Reply-To: <199709171427.HAA08519@GndRsh.aac.dev.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> > >  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
--------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970918092754.818R-100000>