LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-24-2007, 04:33 AM   #1
doronunu
Member
 
Registered: Dec 2005
Location: Israel
Distribution: used : Ubuntu, Debian, Arch. current : Centos.
Posts: 69

Rep: Reputation: 15
auto scroll license agreement in bash


Hi all,

I have 30 server and i try to install some application on them which use java.

i want to run a script that install my application and the java.

but when you running the java binary it have a license agreement and and then he ask to confirm the agreement. as i been saying i dont wont to sit near every server and accept the agreement manually.

so for the accept i can add the below code in my script so it will answer yes automaticlly
Code:
./java.bin << EOF
y
EOF
but i cant reach the end of the license agreement? (manually i press 4 space or q) it use more or less to display the agreement. how can i auto scroll the license?

Last edited by doronunu; 12-24-2007 at 04:35 AM.
 
Old 12-25-2007, 11:10 PM   #2
kzutter
Member
 
Registered: Nov 2007
Location: Carson City, NV USA
Distribution: Various, but always Debian based
Posts: 70

Rep: Reputation: 15
I think this is a job for ...drum roll please...Expect

http://directory.fsf.org/project/expect/
 
Old 12-27-2007, 01:22 AM   #3
owenjh
Member
 
Registered: Sep 2007
Distribution: Fedora / Slackware
Posts: 46

Rep: Reputation: 15
Yea, Expect will work here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
License agreement - violation? Acrobat. kaz2100 Linux - Software 4 08-23-2007 06:41 PM
LXer: How to Write an End User License Agreement LXer Syndicated Linux News 0 05-09-2007 10:46 AM
LXer: Oracle Signs License Agreement With Open Invention Network LXer Syndicated Linux News 0 03-27-2007 01:16 PM
LXer: FSFE's Fiduciary License Agreement is no panacea LXer Syndicated Linux News 0 02-12-2007 11:31 PM
license agreement in linux sailu_mvn General 65 01-10-2006 03:55 PM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration