[FLUG] dyndns... uhm... si

  • From: simon <seddie@xxxxxxxxx>
  • To: fanolug@xxxxxxxxxxxxx
  • Date: Mon, 2 Dec 2002 14:21:57 +0100

Mailing List del Fortunae LUG
=============================

Ecco un mini-client per dyndns.org che mi son fatto per non
usare quelli che forniscono sul sito che son noiosi (?).

-----| begin file: dyndns.sh |-----
#!/bin/sh

DYNDNS_RESPONSE=/etc/ppp/dyndns.dat
DYNDNS_USER=test
DYNDNS_PASS=test
DYNDNS_HOST=test.dyndns.org

DYNDNS_QURY=https://members.dyndns.org/nic\
/update\?system=dyndns\&hostname=\
${DYNDNS_HOST}\&myip=$1\&wildcard=ON

#echo -n "Updating dyndns [$1]: "

if [ -f ${DYNDNS_RESPONSE} ]; then
  grep $1 ${DYNDNS_RESPONSE} > /dev/null
else
  false
fi

if [ $? == 1 ]; then
  wget -qO ${DYNDNS_RESPONSE} \
    --http-user=${DYNDNS_USER} \
    --http-passwd=${DYNDNS_PASS} \
    ${DYNDNS_QURY}
#  cat ${DYNDNS_RESPONSE}
#  echo
#else
#  echo "no update required."
fi
-----| end file: dyndns.sh |-----

Per usarlo: ./dyndns.sh ip_attuale

-- 
/* Federico 's1m0n' Simoncelli <f.simon@xxxxxxxx>
   http://www.jkcal.org/simon
*/
int main(){unsigned int g,h=0;while(++h){for(g=(h>1)?2:1;g<
h/2+1&&h%g!=0;g++);if(g==h/2+1)printf("%i\n",h);}return 0;}

--
Le raccomandazioni della mamma di simon "non prendere freddo, copriti... e 
prendi il palmare"

Other related posts:

  • » [FLUG] dyndns... uhm... si