# initializing custom variables
host=`hostname`
-myip="`host $host | awk '{ print $4 }'`"
+if [ -z $1 ] ; then
+ myip="`host $host | awk '{ print $4 }'`"
+else
+ myip=$1
+fi
res=$?
if [ "$res" != "0" ] ; then
echo "unable to determine the hosts ip address"