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.
···
--
Posted via http://www.ruby-forum.com/.
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.
--
Posted via http://www.ruby-forum.com/.
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
Thank you. this is the right direction
--
Posted via http://www.ruby-forum.com/.