If you want the pid of the ppp process do a ps aux.
grep the output of ps aux then use awk to get the first column of the output = pid
pppd
Saludos desde Buenos Aires - eric
-----Mensaje original-----
De: Oliver Schulze [SMTP:[EMAIL PROTECTED]]
Enviado el: jueves 25 de marzo de 1999 1:22
Para: Michael Talbot-Wilson
CC: [EMAIL PROTECTED]
Asunto: Re: Obtaining the pid of pppd from the interface name.
Michael Talbot-Wilson wrote:
>
> On Wed, 24 Mar 1999, Oliver Schulze wrote:
>
> > Hi,
> > I'm trying to obtain the pid of a pppd that creates a ppp interface given
> > the interface name.
> > I'm working in Linux 2.2.2
> >
> > ...
> > for the string "ppp" in 'icf.ifc_req[i].ifr_name'. The variable 'i' grow until
> > ...
>
> It is in /var/run/$IFNAME.pid.
>
> If you mean given the IP address of the peer, put this in ip-up:
>
> FILENAME=/var/run/ppp_$IPREMOTE
> echo $IFNAME >$FILENAME
> chmod 644 $FILENAME
Hi Michael,
this file (/var/run/$IFNAME.pid) is created by default by the ppp package?
I'm developing a program that need to know the pid of the running ppp(s).
And I want to obtain that info while keeping the system/packege requirement
as low as posible.
My app currently need gtk+1.2 and Linux and I dont't know if there is another
ppp packege out there for Linux.
Best Regards
Oliver
--
Oliver Schulze L.
[EMAIL PROTECTED]
Asuncion-Paraguay
http://www.pla.net.py/home/oliver/gpppkill/
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]