# Expect, rexpect and others

**URL:** <https://rubytalk.org/t/expect-rexpect-and-others/9269>\
**Category:** ruby-talk\
**Created:** [9 December 2003 23:44 UTC](https://rubytalk.org/t/expect-rexpect-and-others/9269 "2003-12-09T23:44:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Giddings1](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@Ben\_Giddings1](https://rubytalk.org/u/Ben_Giddings1)\
**Post date:** [9 December 2003 23:44 UTC](https://rubytalk.org/t/expect-rexpect-and-others/9269/1 "2003-12-09T23:44:02Z")

</div>

I know that now Ruby includes “expect”, and that’s great, however I noticed  
that it reads data one character at a time, I’m trying to use it on  
something that spits out a _lot_ of data, and don’t think this is the best  
solution to the problem.

I then came across this page:

[http://www.rubygarden.org/ruby?RExpect](http://www.rubygarden.org/ruby?RExpect)

It attempts to fix some of the perceived flaws with expect, including  
getting things one character at a time.

Does anybody have any experience with either, and have any suggestions to  
someone wanting this kind of functionality?

Ben
