Re: finding out my IP address..

2003-10-31 Thread Wiggins d'Anconia
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!

Re: finding out my IP address..

2003-10-31 Thread Harry Putnam
[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!

RE: finding out my IP address..

2003-10-30 Thread McMahon, Chris
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

Re: finding out my IP address..

2003-10-29 Thread denis
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

Re: finding out my IP address..

2003-10-29 Thread Rob Dixon
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

Re: finding out my IP address..

2003-10-29 Thread Kevin . Bewley
>> 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

Re: finding out my IP address..

2003-10-29 Thread Wiggins d Anconia
> 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