# Hosting a REPL outside the command line

**URL:** <https://www.ruby-forum.com/t/hosting-a-repl-outside-the-command-line/178587>\
**Category:** IronRuby\
**Created:** [November 7, 2009, 5:49am UTC](https://www.ruby-forum.com/t/hosting-a-repl-outside-the-command-line/178587 "2009-11-07T05:49:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![confundido](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@confundido](https://www.ruby-forum.com/u/confundido)\
**Post date:** [November 7, 2009, 5:49am UTC](https://www.ruby-forum.com/t/hosting-a-repl-outside-the-command-line/178587/1 "2009-11-07T05:49:55Z")

</div>

I don’t suppose anyone has successfully run IRB outside of the console?  
I’m giving up at this point, as I get the feeling there is something  
special about running inside cmd.exe (on windows) that IRB really needs  
to feel whole - but I thought I’d throw out a net in case someone has  
been successful in this, or feels strongly it should be possible J

Is there a standard or recommended approach to hosting a REPL outside of  
the context of the command line? I want to a. embed a REPL in my  
applications (which are windows forms) and b. provide remote access to a  
REPL via HTTP and SSH. Hosting IRB and taking over Standard In and  
Standard Out seemed ideal, but isn’t working out. An anyway, at the end  
of the day an IRB solution would be bound to IronRuby, and it would be  
nice to allow any DLR language.

I’m feeling like this may be a common need, and has probably been  
adequately solved by now, so I guess I’m just fishing for patterns.

Thanks in advance,

Nathan

---

<div class="post-metadata">

**Author:** ![confundido](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@confundido](https://www.ruby-forum.com/u/confundido)\
**Post date:** [November 7, 2009, 7:37am UTC](https://www.ruby-forum.com/t/hosting-a-repl-outside-the-command-line/178587/2 "2009-11-07T07:37:35Z")

</div>

Do you specifically need IRB or would you rather build your custom REPL?

The latter is pretty easy:

> **[tomasm.net](http://blog.tomasm.net/2009/04/15/python-says-hello-to-ruby/)**
>
> This domain may be for sale!

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Nathan Stults  
Sent: Friday, November 06, 2009 8:50 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Hosting a REPL outside the command line

I don’t suppose anyone has successfully run IRB outside of the console?  
I’m giving up at this point, as I get the feeling there is something  
special about running inside cmd.exe (on windows) that IRB really needs  
to feel whole - but I thought I’d throw out a net in case someone has  
been successful in this, or feels strongly it should be possible 🙂

Is there a standard or recommended approach to hosting a REPL outside of  
the context of the command line? I want to a. embed a REPL in my  
applications (which are windows forms) and b. provide remote access to a  
REPL via HTTP and SSH. Hosting IRB and taking over Standard In and  
Standard Out seemed ideal, but isn’t working out. An anyway, at the end  
of the day an IRB solution would be bound to IronRuby, and it would be  
nice to allow any DLR language.

I’m feeling like this may be a common need, and has probably been  
adequately solved by now, so I guess I’m just fishing for patterns.

Thanks in advance,

Nathan

---

<div class="post-metadata">

**Author:** ![confundido](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@confundido](https://www.ruby-forum.com/u/confundido)\
**Post date:** [November 7, 2009, 7:41am UTC](https://www.ruby-forum.com/t/hosting-a-repl-outside-the-command-line/178587/3 "2009-11-07T07:41:41Z")

</div>

I don’t need IRB - a custom REPL will do - I’ll check your link, thanks.

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Tomas M.  
Sent: Friday, November 06, 2009 10:33 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] Hosting a REPL outside the command line

Do you specifically need IRB or would you rather build your custom REPL?

The latter is pretty easy:

> **[tomasm.net](http://blog.tomasm.net/2009/04/15/python-says-hello-to-ruby/)**
>
> This domain may be for sale!

Tomas

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Nathan Stults  
Sent: Friday, November 06, 2009 8:50 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Hosting a REPL outside the command line

I don’t suppose anyone has successfully run IRB outside of the console?  
I’m giving up at this point, as I get the feeling there is something  
special about running inside cmd.exe (on windows) that IRB really needs  
to feel whole - but I thought I’d throw out a net in case someone has  
been successful in this, or feels strongly it should be possible J

Is there a standard or recommended approach to hosting a REPL outside of  
the context of the command line? I want to a. embed a REPL in my  
applications (which are windows forms) and b. provide remote access to a  
REPL via HTTP and SSH. Hosting IRB and taking over Standard In and  
Standard Out seemed ideal, but isn’t working out. An anyway, at the end  
of the day an IRB solution would be bound to IronRuby, and it would be  
nice to allow any DLR language.

I’m feeling like this may be a common need, and has probably been  
adequately solved by now, so I guess I’m just fishing for patterns.

Thanks in advance,

Nathan
