We need a bash script to do these tasks:
1. Output a line to the apache httpd config file only if it does not already contain that line. ? You can find the true config file by running httpd -V and append using tee -a. ? The line to be printed at the end of [login to view URL] is: "Include /test1/test2/test3"
2. Comment out the "exclude" line in yum.conf.
3. Un-Comment back in the "exclude" line in yum.conf.
4. Get correct [login to view URL] location and set it to variable MYSQLSOCK, e.x:
MYSQLSOCK=/var/lib/mysql/[login to view URL]
5. Automatically enter in a previously inputted variable from "read" to a command that prompts for input. ? Example: run "mysql -u root -p" and it will ask for input. ? Must send input automatically without user interaction, e.g. something similar to "echo "test123" | mysql -u root -p". ? Solution must work for any command, this is not acceptable: mysql -u root -ptest123 or mysql -u root password test123.