From: Andrew Hunt Date: 2000-12-16T11:58:26+09:00 Subject: [ruby-talk:7378] Re: Getting name of OS ruby was built on If you: require 'rbconfig' include Config You'll be able to access a number of interesting variables: CONFIG["host"] = "i686-pc-linux" CONFIG["host_alias"] = "i686-pc-linux" CONFIG["host_cpu"] = "i686" CONFIG["host_vendor"] = "pc" CONFIG["host_os"] = "linux" CONFIG["target"] = "i686-pc-linux" CONFIG["target_alias"] = "i686-pc-linux" CONFIG["target_cpu"] = "i686" CONFIG["target_vendor"] = "pc" CONFIG["target_os"] = "linux" CONFIG["build"] = "i686-pc-linux" CONFIG["build_alias"] = "i686-pc-linux" CONFIG["build_cpu"] = "i686" CONFIG["build_vendor"] = "pc" CONFIG["build_os"] = "linux" Hope this helps... /\ndy -- Andrew Hunt, The Pragmatic Programmers, LLC. Innovative Object-Oriented Software Development web: http://www.pragmaticprogrammer.com email: andy@pragmaticprogrammer.com -- Books by Andrew Hunt and David Thomas: "The Pragmatic Programmer" (Addison-Wesley 2000) "Programming Ruby" (Addison-Wesley 2001) --