shell - how do I pass y to [y/n] kind of questions in linux automatically -
I have to automate some installation, but in some commands it asks, "are you sure you want to continue Are [y \ n] = "How can I always pass y
to all such queries to automate my script?
resonant 'y y' | Sudo rpm -Uhh https://mirror.webtatic.com/yum/el6/latest.rpm sudo yum install yum-plugin-replace-sudo instead of yum mysql-libs-replace-mysql55w-libs sudo yum install mysql.` Uname -i` yum-plugin-replace echo yes "yes" | Sudo yum install mysql55w mysql55w-server sudo service mysqld start sudo mysql_upgrade -u root
Here is my shell script. I need to implement it completely with any such questions.
You can use the yes
utility:
$ yes | Sudo rpm -Uhh https://mirror.webtatic.com/yum/el6/latest.rpm
Comments
Post a Comment