Created
November 5, 2015 23:59
-
-
Save nsabharwal/ed498a4fbcfd75b7dd97 to your computer and use it in GitHub Desktop.
This file contains 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
yum install expect* | |
#!/usr/bin/expect | |
spawn ambari-server sync-ldap --existing | |
expect "Enter Ambari Admin login:" | |
send "admin\r" | |
expect "Enter Ambari Admin password:" | |
send "admin\r" | |
expect eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment