> > Given this hell, I can't see why my original suggestion of parsing > > ifconfig has not been taken into account... a couple of lines of > > > It has, at least by the OP (that would be me). > > /sbin/ifconfig|grep -m 1 inet|sed -e 's/^\s*inet addr://'|sed -e 's/\s.*$//'
Wow. You evil geniuses of regular expressions! °_° I'm not that good with sed, awk and the like... I'd have used a couple lines of python, probably. You know, I belong to the new, lazy, spoiled generations of desktop Linux users, that no more learn all the old Unix magic formulas... :) m. -- [email protected] mailing list

