New Zealand ADSL Mailing List


Re: 203.96.111.199

From: godfrey_at_globe.net.nz
Date: Wed, 18 Aug 1999 04:30:57 GMT
Message-Id: <199908180430.QAA10350@julia.globe.net.nz>

The perl script obtain_ip.pl previously made available by Dan already does most of the
work. The script has already gone to all the trouble of obtaining the IP so there is no
need to find out the IP again.

Simply by altering obtain_ip.pl all this can be done in perl either by using sockets or by
downloading the libwww modules which considerably simplify things and using those.
In the case of yi.org using perl it is possible to find out the status of the update,
which is either "OK" or "ERROR". At the same time you can confirm that the IP is indeed
the IP you sent to yi.org. So you have two checks instead of just one.

Godfrey Livingstone

> >I think you 'll find tht it relates to those bits of the script
> >that you did not seem to need and relied on lynx to do an http put.
> >
> >what needs to be done in principle is to
> >let IP_address = m10_Ip
> >let site_specific_command_string := what ever you need to tel Yi.org or whoever
> you use
>
> Yes, that's more or less what I plan to do. In the meantime, my script looks
> like this:
>
> /usr/local/bin/lynx -source -auth=$user_id:$password \
> http://www.yi.org/bin/dyndns.fcgi?ipaddr=210.55.118.72 | \
> sed -e "s,^,$now: ," -e "s,<.*\?>,,g"
>
> I will eventually modify the above script to take a parameter.
>
> >This was implicit in Brendans comment that it proxied everything on port 80.
>
>
> Yep. It didn't occur to me that this had yi.org implications.
>
> The problem I mentioned in my previous message is my script. And I know how
> to fix it. Just need time to do it now.
> --
> Dan Langille
>
> To unsubscribe: send mail to majordomo@freebsddiary.cx
> with "unsubscribe adsl" in the body of the message

To unsubscribe: send mail to majordomo@freebsddiary.cx
with "unsubscribe adsl" in the body of the message
Received on Wed Aug 18 04:30:57 1999


This archive was generated by hypermail 2.2.0 : Thu Nov 30 11:48:35 2006 EST