Executables and Standard Input

Hello,

I need to start an executable and feed it data through standard input.

I know how to do this with other languages but can't figure out how to
do it with ruby.

Can someone please point me in the right direction?

Thanks.

···

--
Posted via http://www.ruby-forum.com/.

Try http://www.rubycentral.com/book/ref_c_io.html#IO.popen for
starters, also if you need to control stderr search for popen3, etc.

pth

···

On 3/18/07, Brandon <brandon.casci+rubyforum@gmail.com> wrote:

Hello,

I need to start an executable and feed it data through standard input.

I know how to do this with other languages but can't figure out how to
do it with ruby.

Can someone please point me in the right direction?

Thanks.

--
Posted via http://www.ruby-forum.com/\.