#!/bin/sh wip=`curl --silent http://checkip.dyndns.org | awk '{print $6}' | cut -f 1 -d "<"` if [ "$?" -ne "0" ]; then xip="Some kind of error occurred. If you got any results they might not be reliable." else xip="As far as I can tell everything ran fine." fi echo -n "Here's the current IP Information for " /usr/bin/uname -n echo "" echo $wip echo $xip