From: darren kirby Date: 2007-12-14T03:02:32+09:00 Subject: Re: Showing Running Processes in variable quoth the jackster the jackle: > 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? Not sure if this is the best but: x.split("\n").each do |line| puts line end works for me. > thanks > > jackster -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972