Skip to content

Instantly share code, notes, and snippets.

@frank-leap
Last active August 29, 2015 14:19
Show Gist options
  • Save frank-leap/ad62cdd66c448205692b to your computer and use it in GitHub Desktop.
Save frank-leap/ad62cdd66c448205692b to your computer and use it in GitHub Desktop.
Expect script used for Greenplum SNE 4.2.6.1 installer
#!/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
@frank-leap
Copy link
Author

Couple of comments:

  • Greenplum installer has to be downloaded from Pivotal website (requires a user account)
  • Greenplum installer requires the following packages: sed tar awk cat mkdir tail mv more
  • Timeout when extracting Greenplum has been avoided by changing from 10sec (default) to 60sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment