From: "Hal E. Fulton" Date: 2002-08-22T01:59:30+09:00 Subject: Re: OS version ----- Original Message ----- From: "Berger, Daniel" To: "ruby-talk ML" Sent: Wednesday, August 21, 2002 11:14 AM Subject: RE: OS version > > -----Original Message----- > > From: Kontra, Gergely [mailto:kgergely@mlabdial.hit.bme.hu] > > Is there a way to find out the OS version from ruby? > > I have written a module called Sys::Uname that does this. It's an extension > based on the uname command, and it's available on the RAA. Your other > alternative is to use the output of a system call. > > The above applies to *nix only. I don't how to do it in Windows. One way is: winos = `ver` That variable is supposed to be "win OS" not the plural of wino. Hal