I need to know if there is a way of when you execute a command in bash that executes a program, for example the certbot, I would like to automate the different questions that the program runs through the script.
To execute only a confirmation question is easy, because simply with:
echo "Y" | command
This would answer the confirmation question that yes and would be executed. The problem is when it is more than one question and with a different answer (and, n, 2, mail .. etc)
I need to know how to execute the script so that every time I ask the program, enter the information correctly.
Any ideas?
Thanks in advance