From: djberg96@... (Daniel Berger) Date: 2002-04-26T06:56:48+09:00 Subject: Re: Hostname command "Victor Manuel Reyes Viloria" wrote in message news:... > Perhaps I don't know what you guys are talking about, but I get my windows > hostname with either one of these expressions: > > hn = system("hostname") > puts hn > > or the following": > > puts system("hostname") > > Victor A couple of problems. First, this creates a subprocess, which may not be something you want to do. Also, the command's output will be sent to STDOUT, which you *probably* don't want. Now, I realize you could also use IO.popen to assign the output to a variable instead of STDOUT, but you're still creating a subprocess using that method. Mostly, however, I proposed this because, hey, Perl has it. :) Regards, Dan