#! /bin/sh TARGET=$1 if test -z "$TARGET"; then echo "usage: $0 TARGET [HOST-IP]" exit 1 fi myaddr(){ perl -MSocket </dev/null