[ANN] Sys::ProcTable 0.3.0

Hi all,

I am happy to announce the release of Sys::ProcTable 0.3.0.

This is a C extension for the ‘ps’ command on *nix systems (it is not
parsed system call output). With this module you can view process table
information, such as pid, euid, state, etc. The exact fields available
depend on your platform.

What’s new since the last announcement?

FreeBSD support has been added!
The ability to limit your results by command name
Now returns an array of structs in lvalue context
Some other minor bug fixes & changes

Thanks go to Sean Chittenden for providing me with a FreeBSD environment
to work on.

Quick synopsis:

require 'sys/proctable’
include Sys

List available fields

puts "Available fields: " + ProcTable.fields.join(’, ') # Everything

ProcTable.ps{ |p|
puts p.pid.to_s
puts p.comm

}

or just these two processes

ProcTable.ps(2123,327){ |p|
puts p.pid.to_s
puts p.comm

}

or only ‘vim’ processes

ProcTable.ps(“vim”){ |p|
puts p.pid.to_s
puts p.comm

}

Enjoy!

Dan

I’d be more than happy to add UNICOS support if someone gives me a
Cray system to work on :wink:

···

On Tue, Aug 13, 2002 at 01:38:49AM +0900, Daniel Berger wrote:

Thanks go to Sean Chittenden for providing me with a FreeBSD environment
to work on.


_ _

__ __ | | ___ _ __ ___ __ _ _ __
'_ \ / | __/ __| '_ _ \ / ` | ’ \
) | (| | |
__ \ | | | | | (| | | | |
.__/ _,
|_|/| || ||_,|| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

  • LG loves czech girls.
    LG: do they have additional interesting “features” other girls don’t have? :wink:
    #Debian