>>>>> "Dave" == Dave Thomas <Dave / thomases.com> writes:

    Jim> I want to start a process and feed it information through its
    Jim> standard input and read the result from its standard output.
    Jim> [...]

    Dave> IO.popen does what you want.

Thanks.  I missed the close_write call.

    Dave> This comes from pg 121:

I'm reminded of the story of prison immates who had numbered all their
jokes.  Someone would call out "Number 15!" and all would laugh.  I
imagine that we could rewrite the Ruby FAQ with answers like "Page
121!"  and "Page 271!" (one of my personal favorites).

-- 
-- Jim Weirich     jweirich / one.net    http://w3.one.net/~jweirich
---------------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct, 
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)