I use the line below in the add-apt-repository ppa:webupd8team/java When it starts from a script, I get a prompt to press [return] to confirm adding the source to the repository
Can I automate this return?
Secondly, I install oracle-java7-installer, and there is a license agreement in which the user is offered: 1 .. OK license agreement 2. Select YES to accept the license terms.
Is it possible to automate OK and automate the keyboard to the left and OK to accept the license terms? This script is for local testing, and I want the script to stop for these user inputs every time.
I saw this method of connecting YES to the command: yes | <command here> yes | <command here>
I hope there is a similar method to automate these steps ...
linux shell return key
linuxnoob
source share