Re: Detect PPP interface ?



Thanks found it =)

So all I have to do is to look in this file to get the tranfer rate and status...
Sounds simple enough =)
I will try this !!

Thanks for you help !!!
/Magnus

"Daniel M. German" wrote:

>  Magnus> Hi ...
>  Magnus> I am writing a simple ppp0 dialer ... and I wonder if anyone knows how
>  Magnus> to detect if ppp0 is up and running in a simple way ... Would also be
>  Magnus> nice to to get some status stuff too =)
>
>  Magnus> All in this in GNOME of course =)
>
> Try to open /proc/net/dev and scan for any  ppp interface. It is the
> most reliable way, at least under linux.
>
> --
> Daniel M. German                  "As De Gaulle used to say:
>                                    'Aim well, shoot fast
>    Henri Cartier Bresson ->        and get the hell out.'"
> http://csgwww.uwaterloo.ca/~dmg/home.html
> dmg@csg.uwaterloo.ca
>
>
>
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list

--
Magnus Wirström
Alien Software Development
Linux developer

>>>>> Linux Mandrake 7.0 <<<<<
Linux is like a wigwam ...
No gates, No windows and an Apache inside....


begin:vcard 
n:Wirström;Magnus
tel;cell:+46704998120
tel;fax:+461166341
tel;home:+461166341
tel;work:+46704998120
x-mozilla-html:FALSE
url:home.bip.net/asd
org:Alien Software Development
version:2.1
email;internet:asd@mail.bip.net
title:System Programmer
adr;quoted-printable:;;Korsbyggevägen 6;=C5by;;616 34;Sweden
x-mozilla-cpt:;0
fn:Magnus Wirström
end:vcard


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]