Dan Browning wrote: > > In a shell script, how do I assign a varialbe the current dynamic ip address > for a given interface? What about current default gateway? LOCALIF="ppp0" LOCALIP=`ifconfig $LOCALIF | grep inet | cut -d : -f 2 | cut -d \ -f 1` LOCALMASK=`ifconfig $LOCALIF | grep Mask | cut -d : -f 4` LOCALNET="$LOCALIP/$LOCALMASK" echo "External: $LOCALNET -- mozilla Be Counted ---> http://counter.li.org:80/index.html -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.