It is quite easy to install java sun jdk 1.6.x using xxx.rpm.bin installer from java.com, but it forces you to press "Enter" for the license agreement during installation. This is a problem for me as I need to create script to install java jdk automatically. Anyone know how to avoid this issue? Thanks.
The linux command "yes" can repeatedly press a key (default is y)
Pretty simple, If you want it to just hit
See more at http://www.computerhope.com/unix/yes.htm
I presume you already add executable attribute to the bin file:
Or if is expecting Y,y or yes:
Now, just be patient and wait until the end.