Answer the question
In order to leave comments, you need to log in
How to forward multiple responses to the console for a script?
There is a console installer, when running it, it asks for 3 parameters. As far as I know, you can answer automatically for one parameter like this:
yes | java -jar setup.jar
And what about when there are 3 parameters?
Answer the question
In order to leave comments, you need to log in
In addition to the option that was suggested above:
There is an expect
program
Syntax similar to the shell, allows you to set timeouts, draws a conclusion depending on what is input.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question