[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: query ip adress
From:       Shane Wright <me () shanewright ! co ! uk>
Date:       2001-10-18 15:01:59
[Download RAW message or body]

Hi

ifconfig - with the help of some grepping should help, how about

ifconfig | grep "ppp0" --after-context=1 | grep "inet addr:"

that should get you the line with the IP addr on it (for interface ppp0)

Shane

On Thursday 18 October 2001 3:57 pm, Thomas Schubert wrote:
> hi,
>
> Short question:
> could somebody tell me how to find out the current ip-adress of a dial-up
> connection, either by script, c function or similar? And it should work for
> a user, not root, so calling "route" in a script is not it.
>
> Thanks
> thomas
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

-- 
Shane
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic