RAA - sys-uname/0.6.1

sys-uname / 0.6.1

Short description: C extension to the unix 'uname' command
Category: Library/OS
Status: Stable
Created: 2002-12-31 15:00:00 GMT
Last update: 2004-04-22 20:41:01 GMT
Owner: Daniel Berger (Projects of this owner)
Homepage: http://ruby-sysutils.sourceforge.net
Download: http://prdownloads.sourceforge.net/ruby-sysutils/sys-uname-0.6.1.tar.gz?download
License: Ruby's
Dependency:
None
Description:

A Ruby interface to the 'uname' command. This is a C extension to the utsname.h file, not parsed output.

CHANGES
=======
- Simplified extconf.rb script and installation instructions.
- Combined three test scripts into a single test script.
- Warranty information added.

USAGE
=====
require 'sys/uname'
include Sys

puts Uname.nodename
puts Uname.version
...

Methods
=======
sysname() - e.g. SunOS
nodename() - e.g. myhost.somedomain.com
version() - e.g. Generic_108528-1
machine() - e.g. sun4u
release() - e.g. 5.8

Solaris-only Methods
====================
platform() - e.g. SUNW,Sun-Blade-100
architecture() - e.g. sparc

OS X-only Methods
=================
model() - e.g. PowerBook5,1

HP-UX-only Methods
==================
id() - e.g. 12354345

Versions: [0.8.2 (2007-11-23)] [0.8.1 (2007-08-30)] [0.8.0 (2007-04-11)] [0.7.4 (2006-11-19)] [0.7.3 (2006-07-30)] [0.7.2 (2006-07-05)] [0.7.1 (2005-05-05)] [0.7.0 (2005-01-11)] [0.6.1 (2004-04-22)] [0.6.0 (-)]

Edit this project (for project owner)

back to RAA top