Re: Getting my WAN IP address from ppp0

2004-01-06 Thread Stephan Hochhaus
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

Re: Getting my WAN IP address from ppp0

2004-01-06 Thread Rick Smith
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

Solution: Getting my WAN IP address from ppp0 and upload via ftp

2004-01-06 Thread Stephan Hochhaus
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

Re: Solution: Getting my WAN IP address from ppp0 and upload via ftp

2004-01-06 Thread Jeremy Mates
* 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