From: Nit Khair Date: 2008-10-03T20:11:56+09:00 Subject: Re: Using Shell linux commands in Ruby! Ch Asif wrote: > Please also look at: %x{command} such as : dirlist=%x{ls -m} etc. Do note that you may have to chomp() the result in many cases - there will be the extra char at end (newline). btw, system() won't return the output. There are other variations such as "exec" which will overlay your current process ... my favorite is %x{...} -- Posted via http://www.ruby-forum.com/.