Hi Zach,
Well, this almost works for me.
#!perl
my $ifconfig = `ifconfig`; # the ifconfig command gives the current
network information
$ifconfig =~ /inet (\d+\.\d+\.\d+\.\d+)/; # extract the ip address
with a regular expression
This does extract my IP address, but the one for the loopback
Hi Zach,
Well, this almost works for me.
#!perl
my $ifconfig = `ifconfig`; # the ifconfig command gives the current
network information
$ifconfig =~ /inet (\d+\.\d+\.\d+\.\d+)/; # extract the ip address
with a regular expression
This does extract my IP address, but the one for the
Hey Zach, Rick and everyone who helped me on this:
I just finished a very simple script that reads out my IP-address from
the ppp0 device, creates a small HTML file and uploads it to my
webhoster so i can access my g4 from anywhere in the world. The script
is the patchwork of a beginner, so
* Stephan Hochhaus [EMAIL PROTECTED]
I just finished a very simple script that reads out my IP-address from
the ppp0 device, creates a small HTML file and uploads it to my
webhoster so i can access my g4 from anywhere in the world. The script
is the patchwork of a beginner, so any advice on