I want to automate the run of the ./configure
command. When I normally run it, every time I have to press enter. I want to run this command from a shell script and I don't want it to wait for a user to press enter at each prompt for path. How do I achieve this ? I am using Ubuntu machine with bash shell. Thanks.
mdt-inference@ubuntu:~/MDT/mdst-libreoffice$ ./configure
Path to Office installation? [/usr/lib/libreoffice]
Path to Office SDK installation? [/usr/lib/libreoffice/sdk]
Note : I tried the below link but it does not work. How to simulate two consecutive ENTER key presses for a command in a bash script?
I have used "yes" command already but when I run ./configure there are multiple prompts which are more than two. When I use "yes"
, it just supplies argument to the first prompt only