Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!apollo!ced From: ced@apollo.HP.COM (Carl Davidson) Newsgroups: comp.sys.apollo Subject: Re: internet address Message-ID: <5011a909.20b6d@apollo.HP.COM> Date: 27 Feb 91 18:39:00 GMT References: <9102261044.AA02546@apo.esiee.fr> Sender: root@apollo.HP.COM Lines: 22 From article <9102261044.AA02546@apo.esiee.fr>, by bonnetf@apo.esiee.fr (bonnet-franck): > Hi, > > Does somebody knows how to get the internet address of a machine > when I am working on it ( whithout looking in /etc/hosts ) ? > I use a shell command: % /etc/ping `/etc/hostname` 64 1 which says: ping the host I'm logged into once, with a 64 byte packet. If you need to get just the Internet address, you can extract it from the with your favorite test reprocessor, i.e. sed, awk, perl,... Carl Davidson (508) 256-6600 x4361 | The Apollo Systems Divison of | It doesn't TAKE all kinds, The Hewlett-Packard Company | there just ARE all kinds. DOMAIN: ced@apollo.HP.COM |