Have bash script answer interactive prompts
This is not "auto-completion", this is automation. One common tool for these things is called Expect.
You might also get away with just piping input from yes
.
How can I respond to prompts in a Linux Bash script automatically?
Try this:
echo -e "yes\nyes\nno" | /path/to/your/script
From help echo
:
-e
: enable interpretation of the following backslash escapes
Related Topics
Logcat Show Invisible Messages in Eclipse Mars
Advice Regarding Installing Arm Toolchain on Ubuntu Vm (64Bit)
How to Export Symbols from a Shared Library
What Is the Windows Equivalent of Linux Command Wc -L
How to Create an Rs256 Jwt Assertion with Bash/Shell Scripting
How to Know the Creation Time of a File in Ubuntu
Error: Could Not Locate the Bindings File. Tried: #56
Node.Js Child Processes Being Killed When Parent Dies
How to Set Java Classpath in Linux
How Is Pthread_Join Implemented
How to Batch Resize Millions of Images to Fit a Max Width and Height
Run Shell Script When Saving a File in Sublime Text 3
Linux: Block Until a String Is Matched in a File ("Tail + Grep with Blocking")