[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:01690] Re: gethostbyname?

From: Hugh Sasse Staff Elec Eng <hgs@...>
Date: 2000-03-02 16:50:51 UTC
List: ruby-talk #1690
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

In This Thread

Prev Next