Capturing Standard Output from an IronRuby Script using the DLR APIs
Posted
by Marc
on Stack Overflow
See other posts from Stack Overflow
or by Marc
Published on 2010-03-14T04:43:30Z
Indexed on
2010/03/14
6:05 UTC
Read the original article
Hit count: 483
I have a very simple test.rb file:
puts "Hello World"
I want to execute this file within c#, eg:
var runtime = Ruby.CreateRuntime();
runtime.ExecuteFile("C:\test.rb");
How can I capture the "Hello World"?
© Stack Overflow or respective owner