![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| install-discovery script error for X86 | eeisken | SUN Solaris | 0 | 05-18-2008 05:55 PM |
| Help with an install script | dhs23 | Shell Programming and Scripting | 1 | 02-28-2008 06:01 PM |
| Failed to install shell script compiler (shc) | alfredo | HP-UX | 0 | 01-30-2008 11:03 PM |
| Install a cron from a Perl script | garric | Shell Programming and Scripting | 2 | 09-13-2007 05:00 AM |
| Can't install a soft with a script .sh | wappyboy | UNIX for Dummies Questions & Answers | 10 | 06-27-2006 05:35 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
This task is not difficult, you would normally install jdk on linux by doing something like:
./jdk-installer-bin It'll prompt for you to accept the EULA which just requires "y" along with accepting other defaults. I would go through the manual process and figure out if you want to use the defaults, come up with an answer file which is just the answer to each question with a newline separating. Then have a script just do the following: Code:
#!/bin/sh ./jdk-installer-bin < answer_file |
|
||||
|
Thanks for the reply.
But, I have one more question though,the jdk file I am installing has a 'More' command inside it just before the agreement instructions, that way they are making sure that everyone reads the entire agreement. is there anyway that i can avoid it. I tried to manipulate the file by removing the "more" command from the script. But ,when I reexecute it would say file has been corrupted. Is there any other way around? Thanks in advance. Sundeep |
|
||||
|
Last time I checked, it's a general user agreement, once you page down it'll ask if you want to accept. If you pass in "y\n" it should page through that portion. I haven't done an installation lately, but I would suggest looking at passing in some return keys or something that would force the page down.
|
|
||||
|
I have tried that too, I have passed in some returns in the answer file, but it is not taking them as input to scroll down, instead it is accepting them at the eula agreement form.
I dont want user to give any kind of input for scrolling down. Any kind of help would be great Thanks in advance. Sundeep |
![]() |
| Bookmarks |
| Tags |
| linux, shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|