F
F
Fixid2015-07-23 13:02:44
linux
Fixid, 2015-07-23 13:02:44

How to work with interactive script?

Good afternoon, there is an interactive console script in Ruby, you need to automate work with it, i.e. answer questions and confirm actions.
How are the tools for this task? for bash or python
Learning Ruby or making changes to the original script is not suitable
Rewriting the script to another language is not allowed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2015-07-23
@Fixid

man expect

A
Alexander, 2015-07-23
@NeiroNx

Script << commandset.txt > output_stream.txt
Any console implies input and output streams.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question