From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-07T19:36:33+09:00 Subject: Re: capture output On Wed, 07 May 2003 20:25:10 +0900, nobu.nokad wrote: > Hi, > > At Wed, 7 May 2003 18:55:54 +0900, > Simon Strandgaard wrote: >> Capturing output to a File works fine.. But not to StringIO, Why ??? > > StringIO works only in a process, not across processes. Do you have any suggestions for an alternative to StringIO ? Instead of StringIO I tried inheriting from the IO class, But no luck neither.. class CaptureOutput < IO def initialize super(2) # todo: how should I initialize the IO class ? end def write(text) # redirect text elsewhere end end How should I move on ? -- Simon Strandgaard