Harry Putnam wrote:
[EMAIL PROTECTED] writes:
Hi,
I'm trying to find my IP address from within Perl for eth0 and ppp0.
Currently I run a regex on the output of ifconfig to extract his data -
but, I'd like to do this from within Perl and it strikes me that this
should be possible.
HELP! ANYBODY!
[EMAIL PROTECTED] writes:
>>> Hi,
>>>I'm trying to find my IP address from within Perl for eth0 and ppp0.
>>> Currently I run a regex on the output of ifconfig to extract his data -
>>> but, I'd like to do this from within Perl and it strikes me that this
>>> should be possible.
>>>
>>> HELP!
I faced this just a couple of days ago on a FreeBSD system for em0.
Here's what I did:
($in, $myip, $rest) = split / /,qx/ifconfig|grep 192.168/;
print "This IP is $myip\n";
I used the FreeBSD "ifconfig" system call and parsed the output with
split. Whatever system you're o
On Wed, 29 Oct 2003 [EMAIL PROTECTED] wrote:
>
>
>
> >> Hi,
> >>I'm trying to find my IP address from within Perl for eth0 and ppp0.
> >> Currently I run a regex on the output of ifconfig to extract his data -
> >> but, I'd like to do this from within Perl and it strikes me that this
> >> s
Kevin Bewley
>
>I'm trying to find my IP address from within Perl for eth0 and ppp0.
> Currently I run a regex on the output of ifconfig to extract his data -
> but, I'd like to do this from within Perl and it strikes me that this
> should be possible.
Hi Kevin.
This is from
perldoc -q "IP
>> Hi,
>>I'm trying to find my IP address from within Perl for eth0 and ppp0.
>> Currently I run a regex on the output of ifconfig to extract his data -
>> but, I'd like to do this from within Perl and it strikes me that this
>> should be possible.
>>
>> HELP! ANYBODY!
>>
>
>Well this module
> Hi,
>I'm trying to find my IP address from within Perl for eth0 and ppp0.
> Currently I run a regex on the output of ifconfig to extract his data -
> but, I'd like to do this from within Perl and it strikes me that this
> should be possible.
>
> HELP! ANYBODY!
>
Well this module seems to