From: Ross Bamford Date: 2006-11-25T04:53:07+09:00 Subject: Re: rubycookbook 15.1 problem On Fri, 24 Nov 2006 12:55:34 -0000, wrote: I don't know Rails all that well, but it strikes me as doubtful that you want: > @dr = exec "dir/p" which will _replace_ the executing ruby process with a new process (here running dir/p), and won't return. Maybe you'd want backticks instead: @dr = `dir/p` Also, I'm not sure whether you mean `dir/p` or `dir /p`. In any event, note that those are backticks, not single quotes as you've already tried. Hope that helps, -- Ross Bamford - rosco@roscopeco.remove.co.uk