Im trying to use expect to auto accept an EULA that is prompted in –more–.
#!/usr/bin/expect
spawn "./greenplum-perfmon-web-4.1.2.0-build-2-RHEL5-x86_64.bin"
expect "--More--"
send "q"
expect "*****"
send "yes"
expect "*****"
send ""
expect "*****"
send "yes"
This does not work and Im not sure why. The script always halts at the –More– prompt and the second I click ANYTHING it instantly processess the rest of the script.
I have tried with
expect -exact "--More--"
and
expect "the Customer"
(what is written above the --More--)
Try setting
$MOREto something like-99999999so that themoreprompt never shows up.