From: Hugh Sasse Staff Elec Eng Date: 2000-03-02T16:50:51+00:00 Subject: [ruby-talk:01690] Re: gethostbyname? On Thu, 2 Mar 2000, ts wrote: > > thishost = `hostname` > > Try with > > thishost = `hostname`.chomp That works, but I need the other methods to work because I cannot get an IP address easily with backticks. I need the IP address to mess about with sockets from what I can see. Ok, I could call nslookup and munge the output, but it will be less efficient, and these other things ought to work. > > Guy Decoux > Hugh hgs@dmu.ac.uk