On Aug 10, 2007, at 3:30 AM, unbewust wrote:

>
> i'm sure there is a more elegant way doing that in Ruby, avoiding
> shelling, BUT HOW TO ?


>

require 'rubygems'
require 'open4'

stdin = '', stdout = '', stderr = ''

Open4.spawn cmd, :stdin=>stdin, :stdout=>stdout, :stderr=>stderr

there are many example in the dist and postings on this list.

a @ http://drawohara.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama