----- Original Message -----
From: "Berger, Daniel" <djberge / qwest.com>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
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