From: Damjan Rems Date: 2010-04-09T21:42:34+09:00 Subject: Re: How to capture output of linux command Marc Weber wrote: > Learn about Dir object. It has methods such as glob which should give > you directory contents. Then you don't have to care about stdout, nor > quoting. > > http://whynotwiki.com/Comparison_of_Escape_class_and_String.shell_escape > > Have a look at the first example here > > Marc Thanks guys. I used ls just as an example. I am actually calling smartctl command to find out SMART status of all disks on my computer. by TheR -- Posted via http://www.ruby-forum.com/.