From: "ara.t.howard" Date: 2007-09-29T06:10:37+09:00 Subject: Re: process usage On Sep 28, 2007, at 2:05 PM, Eric Hodel wrote: > > Yes, they left a bunch of that stuff out, or don't supply it via > the BSD-ish interfaces they've got. > > Also, some limits you set will have no effect, notably the various > memory size ones. good to know. now i'm using this, which uses the same shell over and over rather than starting a new one: cfp:~ > cat a.rb require 'session' # gem install session module Process def self.size pid = Process.pid @sh = Session.new @sh.execute "ps wwwaux -p #{ pid }", :stdout => stdout=[] vsize, rsize = stdout.last.split(%r/\s+/)[4,2] end end p Process.size cfp:~ > ruby a.rb ["31052", "3388"] a @ http://drawohara.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama