Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Newbie ruby question (finding OS)

Reply
Thread Tools

Newbie ruby question (finding OS)

 
 
Paul Johnston
Guest
Posts: n/a
 
      01-18-2006
Hi
Just started looking at ruby and have a question
Is there a simple way to get an idea of what operating system a ruby
program is running on.
I was guessing checking the OS's file system using something like
"executable?" or even "system" and running a specific *nix command
and seeing what happens but these seem rather crude.
Any suggestions ?
TIA
Paul
 
Reply With Quote
 
 
 
 
Dave Burt
Guest
Posts: n/a
 
      01-18-2006
Paul Johnston wrote:
> Is there a simple way to get an idea of what operating system a ruby
> program is running on.


Use the RUBY_PLATFORM constant.

Cheers,
Dave


 
Reply With Quote
 
 
 
 
Paul Johnston
Guest
Posts: n/a
 
      01-18-2006
On Wed, 18 Jan 2006 09:20:04 GMT, "Dave Burt" <(E-Mail Removed)> wrote:

>Paul Johnston wrote:
>> Is there a simple way to get an idea of what operating system a ruby
>> program is running on.

>
>Use the RUBY_PLATFORM constant.
>
>Cheers,
>Dave
>


Many thanks
Paul
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie in Ruby...Issues while connecting Ruby with Sqlite3 Manish Kalra Ruby 2 12-02-2008 07:05 AM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
another newbie question from another newbie.... Lee UK VOIP 4 05-17-2005 04:10 PM
newbie: cisco vlan newbie question No Spam Cisco 3 06-07-2004 10:02 AM
dumb newbie question (or newbie dumb question) Jerry C. Perl Misc 8 11-23-2003 04:11 AM



Advertisments