I am also working on this right now and have gone past that the problem
is awk '{ printf "%d", $1*16777216+$2*65536+$3*256+$4 }'` the $1 2,3,4 have the correct values, its the addition and multiplication that screws things up for some reason it hits the max number limit of 2147483647 cheers, Hussam (Hussamuddin Nasir) Netlab Operations Team ------------------------------------------------------------------- Laboratory for Adv. Networking Phone : (859)218-0059 James F Hardymon Building Fax : (859)323-3740 301 Rose Street, Rm 202 E-mail : nasir@netlab.uky.edu Lexington, KY 40506-0495 Web : http://www.netlab.uky.edu University of Kentucky ********************** ------------------------------------------------------------------- Ryan Jackson wrote: * Hussamuddin Nasir <nasir@netlab.uky.edu> [090217 12:17]:You you are right the print just gave me text value, but running it with the -x option gives you the clean picture. Any easy fix in mind ??This is really strange. Could you try pasting this into a shell script and running it? I don't have an ubuntu 8 image to test it here. The output should look like the four octets of the IPOD host's IP address separated by spaces. #! /bin/sh . /etc/emulab/paths.sh IPODINFO=`$BINDIR/tmcc ipodinfo` if [ x"$IPODINFO" != x ]; then echo $IPODINFO | sed -e 's/.*HOST=\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \2 \3 \4/' fi |