From: Gary Wright Date: 2009-12-30T08:15:47+09:00 Subject: Re: IO.popen('-') === fork ? On Dec 29, 2009, at 6:03 PM, Nilez Parker wrote: >> I don't see why you go through this instead using one of the #popen >> family of methods (there is also #popen3). > > Thanks again .. but I've looked around at the docs and I don't see how I > could accomplish the same thing as my example code. Perhaps the main > problem is that with popen* the parent process goes into the block too, > and its pipes with the child are closed when it leaves the block. This > is a problem because I need to start several child forks and be able to > communicate with them all, and then start and stop them at will from > there. Any pointers as to how I can / should use popen, or popen2, or > popen3? If you don't pass a block to IO#popen, it just returns the IO object. popen3() works similarly. Gary Wright