From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-15T18:13:15+09:00 Subject: Re: RCR for child execution On Thu, 15 May 2003 18:29:50 +0900, ts wrote: >>>>>> "S" == Simon Strandgaard <0bz63fz3m1qt3001@sneakemail.com> writes: > > S> I think my proprosal a minor patch and I think its possible. > > Well, it's easy : #system is > > rb_define_global_function("system", rb_f_system, -1); > > If you don't like it, you write your own version and then you call > rb_define_global_function() to change the definition of #system > > Then you do the same with fork, and backquote OK, now we are talking :-) I had tried out this before.. and rejected it because I at that moment wasn't able to capture output from child-processes. In this *huge* discussion I realized that Kernel#fork can be overloaded so that I will be able to capture child output. I was blind, but now I can see :-) overloading all output functions: Which methods do I have to overload, if I want to capture all output ??? fork, system, backquote... how about %x(doom3), rb_warn -- Simon Strandgaard