From: unbewust Date: 2007-08-11T22:24:59+09:00 Subject: Re: stderr stdout redirection with Ruby ??? On 10 ao�t, 23:02, "ara.t.howard" wrote: > 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 i've tested allready, unfortunately i get a " undefined method spawn for main object" after having included it... Yvon