Executables and Standard Input

Discussion in 'Ruby' started by Brandon, Mar 18, 2007.

  1. Brandon

    Brandon Guest

    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/.
     
    Brandon, Mar 18, 2007
    #1
    1. Advertising

  2. On 3/18/07, Brandon <> 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/.
    >
    >


    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
     
    Patrick Hurley, Mar 18, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Devyn

    Executables?

    Devyn, Apr 10, 2004, in forum: Perl
    Replies:
    3
    Views:
    575
    J├╝rgen Exner
    Apr 11, 2004
  2. Greg
    Replies:
    0
    Views:
    341
  3. Kaidi
    Replies:
    4
    Views:
    2,813
    Kaidi
    Jul 14, 2004
  4. Francesc Guim Bernat

    .NET executables and XML, i need help :-(

    Francesc Guim Bernat, Sep 17, 2003, in forum: C++
    Replies:
    2
    Views:
    372
    Pianoman
    Sep 19, 2003
  5. ASP.NET and Executables

    , Apr 10, 2007, in forum: ASP .Net
    Replies:
    7
    Views:
    520
    Eliyahu Goldin
    Apr 10, 2007
Loading...

Share This Page