From: srau@... (Stafford A. Rau) Date: 2008-04-05T02:07:29+09:00 Subject: Re: linux: getting the "load" values without using "top" * pat eyler [080401 07:58]: > On Tue, Apr 1, 2008 at 8:49 AM, James Dinkel wrote: > > I would like to get some of the information provided by the "top" > > command into my ruby program, in particular the "load" values. The only > > way I can think of is to use popen3 to run "top -n 1" and parse the > > output, but I would like to not have to call an external command and do > > it using pure ruby. > > look at the contents of /proc/loadavg Ruby Geek! ;-) --Stafford (Very very newbie wanna-be Ruby Geek)