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.
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
···
----- 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
Is there a way to find out the OS version from ruby?
The above applies to *nix only. I don’t how to do it in Windows.
Well, the only thing I need it for is to detect windows
Gergo
±[Kontra, Gergely @ Budapest University of Technology and Economics]-+
Is there a way to find out the OS version from ruby?
The above applies to *nix only. I don’t how to do it in Windows.
Well, the only thing I need it for is to detect windows
–
Dossy Shiobara mail: dossy@panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
“He realized the fastest way to change is to laugh at your own
folly – then you can let go and quickly move on.” (p. 70)