jackster the jackle wrote:
> I want to capture the list of running processes on my computer. I am to
> get all the data into my variable with a simple system call:
> 
> x = `ps -el`
> 
> My problem comes when I want to display the data back out in a legible
> format that makes sense.
> 
> What is the best way to do this?

I recommend sys-proctable instead.

require 'sys/proctable'
include Sys

ProcTable.ps do |process|
    p process.cmdline
    ...
end

Regards,

Dan