[Linux] Automatically filling in shell script inputs

If you need to automatically fill in inputs on shell scripts you can’t use echo as it will pass it as an argument to the shell script instead of writing it to stdin for the script.  Instead use printf.  Below is an example of using it for an OSSEC install:

# printf “en\n\nlocal\n\nn\n\n\n\n\n\n\n\n\n” | ./install.sh