How-do-i-script-a-yes-response-for-installing-programs

circle.yml

#1

Hi all
When running some command that need to get confirm to continue. It make the build process hang to get an answer.
Anyone has any solution to auto reply YES.
I am trying to use Yes Y. I works but always got error
"Exited with code 141".
Could anyone have any advise.
Thanks


How to automate running this shell script that installs some software?
#2

When asking questions, please always give as much detail as you can. Here, the command you are running would be useful.

If you are using apt-get, then you can simply add --yes as a parameter.

If you are using a command that does not have an auto-yes switch, you could try Expect.


#3

yes YES | your-command will output YES non-stop to your command until the command exits.


#4