I work with Amazon Linux instances and I have a couple scripts to populate data and install all the programs I work with, but a couple of the programs ask:
D
If you want to just accept defaults you can use:
\n | ./shell_being_run