From: Chris White Date: 2011-10-07T05:00:22+09:00 Subject: Re: How to implement an interactive input with ruby script? > I want to automate their actions to manage the server by writing a > program on Ruby. > How to perform automatic data entry, when the program asks for it? For > example, enter the password. expect is often used for this, by continually reading an IO stream until triggering a particular pattern. You just need to `require 'expect'` and then it will become an instance method of IO, and thus be available to  pipes, network sockets, etc. http://www.ruby-doc.org/stdlib/libdoc/pty/rdoc/IO.html has the documentation on it. Regards, Chris White