# Using IRB from a script

**URL:** <https://www.ruby-forum.com/t/using-irb-from-a-script/62751>\
**Category:** Ruby\
**Created:** [June 7, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/using-irb-from-a-script/62751 "2006-06-07T20:39:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [June 7, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/using-irb-from-a-script/62751/1 "2006-06-07T20:39:02Z")

</div>

I’d like to build a script that makes use of IRB for input and  
evaluation.  
Ideally, I’d also like to be able to capture exceptions raised from  
expressions entered and handle them. Can anyone point me to some  
resources  
for doing this?

Thanks!

Justin
