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 :)
In reply to catching output by dusk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |