What is the ruby way to query the arch of the system? Thanks.
Hi TOTO,
Maybe this is what you are after.
[synack@Evergreen] src $ ruby -r rbconfig -e ‘puts Config::CONFIG[“arch”]’
i686-linux-gnu
Check out the rbconfig.rb file to see what other goodies it has.
Signed,
Holden Glova
···
On Sun, 05 Jan 2003 21:17, TOTO wrote:
What is the ruby way to query the arch of the system? Thanks.
Hi,
···
At Sun, 5 Jan 2003 17:17:27 +0900, TOTO wrote:
What is the ruby way to query the arch of the system? Thanks.
puts RUBY_PLATFORM
–
Nobu Nakada
nobu.nokada@softhome.net wrote in message news:200301050939.h059dqg17476@sharui.nakada.kanuma.tochigi.jp…
Hi,
What is the ruby way to query the arch of the system? Thanks.
puts RUBY_PLATFORM
Yes. That works. But how do you find it out? What are the things related to it?
···
At Sun, 5 Jan 2003 17:17:27 +0900, > TOTO wrote:
TOTO wrote:
nobu.nokada@softhome.net wrote in message news:200301050939.h059dqg17476@sharui.nakada.kanuma.tochigi.jp…
Hi,
What is the ruby way to query the arch of the system? Thanks.
puts RUBY_PLATFORM
Yes. That works. But how do you find it out? What are the things related to it?
see also sys-uname on the RAA (or http://ruby-sysutils.sourceforge.net)
</shameless plug>
Regards,
Dan
···
At Sun, 5 Jan 2003 17:17:27 +0900, > > TOTO wrote: