http://qs321.pair.com?node_id=62055

dusk has asked for the wisdom of the Perl Monks concerning the following question:

I am writing a small script to automatically update the IP that a dynamic DNS points to (for myip.org).

The most efficient way that I can think of is to execute /sbin/ifconfig ppp0, and get the inet address, and store it in a scalar for processing

for example:

my $account = "blah"; my $password = "blah"; my $ip = exec "/sbin/ifconfig ppp0"; get ("http://www.myip.org/cgi-bin/Update.py?id=$account&pwd=$password& +hostname=all&ip=$ip");

However, in order for this to work, I need the IP in the URL to `get'.

Any assistance will be appreciated :)