#!/bin/bash T_USER=twitter_username T_PASS=twitter_password T_URL=http://twitter.com/statuses/update.xml cd $HOME LAST_IP=`cat .last_ip` IP=`curl -s -o - http://jeremy.zawodny.com/ip.php` if [ $LAST_IP != $IP ]; then # echo "new ip: $IP" curl -s -o /dev/null -u $T_USER:$T_PASS -d status="$IP" $T_URL echo "$IP" > .last_ip else # echo "ip unchanged" fi