From: Robert Klemme Date: 2008-04-16T06:40:08+09:00 Subject: Re: Is there a way to obtain the computer name using ruby? On 15.04.2008 23:03, Siep Korteling wrote: > Glen Holcomb wrote: >> On Tue, Apr 15, 2008 at 2:48 PM, Mike Johnson >> wrote: >> >> Socket.gethostname >> >> -- >> "Hey brother Christian with your high and mighty errand, Your actions >> speak >> so loud, I can't hear a word you're saying." >> >> -Greg Graffin (Bad Religion) > > Did not know that one, thid works too: > > ENV["COMPUTERNAME"] I would discourage using this approach as it is very error prone and not portable. Kind regards robert