On 16-Feb-2005/10:43 -0600, Bill Gradwohl <bill@xxxxxxx> wrote: [about using hostname-i to get IP address] > >That's simply listing the contents of /etc/hosts in a stripped down IP >only form. Normally that file doesn't contain the "real" IP address of >the box. Okay. This is only useful for boxes with a static IP. Looks like I get to keep my script. http://www.greene-family.org/tony/downloads/getmyip This script: * Outputs the IP address of the specified interface, or * if no interface is specified, output the IP address of the interface that has a default route set, or * if more than one interface has a default route (uncommon, and usually an error) then output an error message and quit. Tony -- Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Ctony@xxxxxxxxxxxxxxxxx%3E> AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.greene-family.org/tony/> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D Linux. The choice of a GNU generation <http://www.linux.org/>