# How to share irb session?

**URL:** <https://www.ruby-forum.com/t/how-to-share-irb-session/172490>\
**Category:** Ruby\
**Created:** [July 22, 2009, 10:21am UTC](https://www.ruby-forum.com/t/how-to-share-irb-session/172490 "2009-07-22T10:21:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@arun](https://www.ruby-forum.com/u/arun)\
**Post date:** [July 22, 2009, 10:21am UTC](https://www.ruby-forum.com/t/how-to-share-irb-session/172490/1 "2009-07-22T10:21:05Z")

</div>

I am trying to teach my students ruby and rails online, so that they  
can contribute to the software we are writing for mentally challenged  
kids at skid.org.in

I would love to be able to type something into an irb session on my  
computer, and have my students be able to view it on their own. Is  
there some cool way do do this?

Thanks,  
Professor Arun Mehta

---

<div class="post-metadata">

**Author:** ![arun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@arun](https://www.ruby-forum.com/u/arun)\
**Post date:** [July 22, 2009, 10:33am UTC](https://www.ruby-forum.com/t/how-to-share-irb-session/172490/2 "2009-07-22T10:33:22Z")

</div>

Le 22 juillet à 10:15, arun a écrit :

> I am trying to teach my students ruby and rails online, so that they  
> can contribute to the software we are writing for mentally challenged  
> kids at skid.org.in
> 
> I would love to be able to type something into an irb session on my  
> computer, and have my students be able to view it on their own. Is  
> there some cool way do do this?

Dunno about cool, but if you’re using \*nix or cygwin, the GNU screen  
utility ( [Screen - GNU Project - Free Software Foundation](http://www.gnu.org/software/screen/) ) should allow you to  
share terminals (for a start, cfr  
[Screen User’s Manual](http://www.gnu.org/software/screen/manual/screen.html#Multiuser-Session)  
).

Fred

---

<div class="post-metadata">

**Author:** ![arun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@arun](https://www.ruby-forum.com/u/arun)\
**Post date:** [July 22, 2009, 11:24am UTC](https://www.ruby-forum.com/t/how-to-share-irb-session/172490/3 "2009-07-22T11:24:15Z")

</div>

arun [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

> I am trying to teach my students ruby and rails online, so that they  
> can contribute to the software we are writing for mentally challenged  
> kids at skid.org.in
> 
> I would love to be able to type something into an irb session on my  
> computer, and have my students be able to view it on their own. Is  
> there some cool way do do this?

You could write an IRC bot that would receive ruby expressions,  
evaluate them and return the results.

You and your student could then chat with any IRC client (there are  
even IRC clients usable thru the web, have a look at:  
[http://webchat.freenode.net/](http://webchat.freenode.net/) ).

You should only take care of the security, if random people can send  
random instructions to your bot computer, it may be bad. But in a  
controlled environment, it’s simple enough to implement.

---

<div class="post-metadata">

**Author:** ![arun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@arun](https://www.ruby-forum.com/u/arun)\
**Post date:** [July 22, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/how-to-share-irb-session/172490/4 "2009-07-22T12:08:10Z")

</div>

arun wrote:

> I would love to be able to type something into an irb session on my  
> computer, and have my students be able to view it on their own. Is  
> there some cool way do do this?

VNC

---

<div class="post-metadata">

**Author:** ![arun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@arun](https://www.ruby-forum.com/u/arun)\
**Post date:** [July 22, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/how-to-share-irb-session/172490/5 "2009-07-22T12:16:52Z")

</div>

On Jul 22, 1:25 pm, “F. Senault” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Dunno about cool, but if you’re using \*nix or cygwin, the GNU screen  
> utility ([Screen - GNU Project - Free Software Foundation](http://www.gnu.org/software/screen/)) should allow you to  
> share terminals (for a start, cfrhttp://www.gnu.org/software/screen/manual/screen.html#Multiuser-Session

thanks Fred  
let me see if I can get my students to run cygwin 🙂  
warmly,  
arun

---

<div class="post-metadata">

**Author:** ![arun](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@arun](https://www.ruby-forum.com/u/arun)\
**Post date:** [July 22, 2009, 12:32pm UTC](https://www.ruby-forum.com/t/how-to-share-irb-session/172490/6 "2009-07-22T12:32:31Z")

</div>

arun wrote:

> I am trying to teach my students ruby and rails online, so that they  
> can contribute to the software we are writing for mentally challenged  
> kids at skid.org.in
> 
> I would love to be able to type something into an irb session on my  
> computer, and have my students be able to view it on their own. Is  
> there some cool way do do this?
> 
> Thanks,  
> Professor Arun Mehta

Instead, why not write a ruby program in a much easier to use text  
editor and email it to them? irb is idiotic.
