[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Writting scripts



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue 2007-05-08 09:10:29 -0400, John Fieldsend wrote:

> I want to write a script that will execute ecery 30 mins, the script
> will get my networks WAN IP using
>
> wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e
> 's/<.*$//'
>
> i need to store that IP address in a variable then get the script the
> goto a url and submit the WAN IP in the url
>
> can this be done by executing a perl script
>
> any advise would be appreciated

have you looked at the ddclient package?  It might do what you want
(and avoid abusive/excessive submissions to boot) without making you
sort out all the pieces yourself.

Even if ddclient doesn't do what you want, you might want to look at
the structure of the package and work from there as a start.

how to install it:
  apt-get install ddclient

how to look at what files were installed:
  dpkg -L ddclient

how to reconfigure the package:
  dpkg-reconfigure ddclient

hth,

        --dkg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFGQHp9iXTlFKVLY2URAsGdAKCdnmLq6O4Wpayco6iw4GJMa75+FQCg5CPg
30bGT3MnLp2c9Xkx8JUKXkc=
=uxiA
-----END PGP SIGNATURE-----



Reply to: