From: matz@... (Yukihiro Matsumoto) Date: 2001-10-05T12:05:31+09:00 Subject: [ruby-talk:22114] Re: RUBY_PLATFORM problems/questions HI, In message "[ruby-talk:22093] RUBY_PLATFORM problems/questions" on 01/10/05, Craig Files writes: | We are doing some work with cross-compiling on different OSes and |thought that the RUBY_PLATFORM |variable would tell us the current OS. Ruby version 1.7.1 (08/29/2001) Well, RUBY_PLATFORM means a target platform. |This does not fit the |definition in the AXE book (pg. 455) where |PLATFORM should be "the platform on which Ruby is running". More precisely, RUBY_PLATFORM should be "the platform on which Ruby is compiled to run". | 2. Since the above is not what we want, is there any way in Ruby to |determine the platform and processor |during runtime? Use `uname -s` for running OS, `uname -r` for the version, and `uname -p` for the processor. It's available on HP-UX. matz.