From: Kyle Schmitt Date: 2008-09-11T06:25:21+09:00 Subject: Re: How to execute files or commands in ruby? My favorite way of executing commands is output=%x{command name} So if you wanted the output of sar to slice and dice your machine's stats sar_output=%x{sar} ls_output=%x{ls} is equivalent to ls_output=`ls`, it's just easier to read/notice in the file etc. There are other ways of course, but they're more complex, and %x{} should work for %90 of what you want to do --kyle