Announcing ruby-sysutils
This sourceforge project aims to provide Ruby extensions for various system utilities.
The following four modules are currently available:
An interface to the ps command (i.e. the /proc filesystem). With this module you can look for information about a specific process, look for groups of processes by name, or iterate over every process that is currently running. Information includes pid, ppid, etc. The exact fields available depend on your platform.
An interface to the uptime command. There are methods to return seconds, minutes, hours, days, or everything at once. Note that the time, users, and cpu load information are not included.
Provides both hostname and (all) ip address information for the current host.
An interface to the uname command. Methods are provided that return the system name, nodename, machine, os version, and os release. Additionally, Solaris users also have methods that return the architecture and platform.
Currently Linux, Solaris and FreeBSD are supported for each of these module