Input/Output to IRB using Pipes

N

Narayanan K

[Note: parts of this message were removed to make it a legal post.]

Hi,


I have a situation where I need to create a pipe into which I load ruby/irb
commands.
Then I have to direct input from this pipe to IRB (Interactive Ruby) .
Also I will have an output pipe to which the irb results/output are
redirected to.

Thus I am changing the STDIN/STDOUT of IRB to Input/Output to/from pipe.

Please suggest ways by which I can do this..

Thanks in advance,

Narayanan
 
M

Martin DeMello

Hi,


I have a situation where I need to create a pipe into which I load ruby/irb
commands.
Then I have to direct input from this pipe to IRB (Interactive Ruby) .
Also I will have an output pipe to which the irb results/output are
redirected to.

Thus I am changing the STDIN/STDOUT of IRB to Input/Output to/from pipe.

Check out my guirb project: http://github.com/martindemello/guirb

martin
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top