[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Executables and Standard Input

Brandon

3/18/2007 9:53:00 PM

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-....

1 Answer

Patrick Hurley

3/18/2007 9:59:00 PM

0

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-....
>
>

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

pth