# \[ANN\] Sys::ProcTable 0.3.0

**URL:** <https://rubytalk.org/t/ann-sys-proctable-0-3-0/1141>\
**Category:** ruby-talk\
**Created:** [12 August 2002 16:38 UTC](https://rubytalk.org/t/ann-sys-proctable-0-3-0/1141 "2002-08-12T16:38:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Berger6](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@Daniel\_Berger6](https://rubytalk.org/u/Daniel_Berger6)\
**Post date:** [12 August 2002 16:38 UTC](https://rubytalk.org/t/ann-sys-proctable-0-3-0/1141/1 "2002-08-12T16:38:49Z")

</div>

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](http://ProcTable.ps){ |p|  
puts p.pid.to\_s  
puts p.comm  
…  
}

# or just these two processes

[ProcTable.ps](http://ProcTable.ps)(2123,327){ |p|  
puts p.pid.to\_s  
puts p.comm  
…  
}

# or only ‘vim’ processes

[ProcTable.ps](http://ProcTable.ps)(“vim”){ |p|  
puts p.pid.to\_s  
puts p.comm  
…  
}

Enjoy!

Dan

---

<div class="post-metadata">

**Author:** ![Mauricio\_Fernndez](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Mauricio\_Fernndez](https://rubytalk.org/u/Mauricio_Fernndez)\
**Post date:** [12 August 2002 16:57 UTC](https://rubytalk.org/t/ann-sys-proctable-0-3-0/1141/2 "2002-08-12T16:57:35Z")

</div>

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

> **···**
>
> 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? 😉  
> – #Debian
