OK, so basically this is what I wanna do with a shellscript (bash):
Inside my shellscript I run a command that requires a couple of inputs, i.e. it asks questions that the user will have to answer. Now I'd like to preset this input so that when said command asks the questions they are automatically answered without the user having to type anything.
For example, let's say I was running the command ssh-keygen. When run it would ask two questions, where to store the generated ssh-key and if the existing key should be overwritten. What I wanna do might be to have the first question automatically answered with [ENTER] and the second with "y+[ENTER]".
Did that make sense? I hope so.
Does anybody know a way to do this?
"codito, ergo sum"