From: Dan Q Date: 2009-11-11T08:46:38+09:00 Subject: Re: Calling a subprocess with specific arguments and capturing its output? > def backtick(cmd,*args) >  IO.popen('-') {|f| f ? f.read : exec(cmd,*args)} > end > > backtick 'du', '-sh', filename Thanks! That's a very nice solution, and more concise than I would have thought possible. I'll use this until ruby-1.9 or 2.0 becomes standard. -Dan