From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-08T04:03:15+09:00 Subject: Re: capture output On Thu, 08 May 2003 04:23:39 +0900, Guillaume Marcais wrote: > What about something like this. You start a ruby process in C++ in its own > pseudo-tty, so that all output (stdout and stderr) of ruby and ruby's > subprocesses is sent to the tty. To execute snippets of ruby code, simply > write them to the ruby interpreter. And there is always one ruby interpreter, > no child. [snip example] Im embedding ruby into c++ and sharing a bunch of classes between ruby and c++. I don't want to execute the ruby binary everytime I do a function call in c++. Besides I don't want to write that wrapper which marshals all input/output to a temporary file. Well.. I think it would work. But it would definitly be be way to slow to be really usable. -- Simon Strandgaard