Last active
August 29, 2015 14:19
-
-
Save fran0x/ad62cdd66c448205692b to your computer and use it in GitHub Desktop.
Expect script used for Greenplum SNE 4.2.6.1 installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set timeout 60 | |
cd /tmp | |
/usr/bin/expect << EOF | |
spawn /bin/bash greenplum-db-4.2.6.1-build-1-RHEL5-x86_64.bin | |
expect { | |
-ex "--More--" { | |
send "\n" | |
exp_continue | |
} | |
"Do you accept the EMC Database license agreement?" { | |
send "yes\r" | |
exp_continue | |
} | |
} | |
expect { | |
"Provide the installation path for Greenplum Database" { | |
send "\r" | |
exp_continue | |
} | |
} | |
expect { | |
"Install Greenplum Database" { | |
send "yes\r" | |
exp_continue | |
} | |
} | |
expect { | |
"Create /usr/local/greenplum" { | |
send "yes\r" | |
} | |
} | |
expect { | |
"Provide the path to a previous installation of Greenplum Database" { | |
send "\r" | |
} | |
} | |
expect | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Couple of comments: