Created
March 17, 2021 13:02
-
-
Save GeorgeSabu/0275ed2043f4f4c970b6aa86fbed9d7d 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
#!/usr/bin/expect -f | |
# Dependency for this script | |
# sudo apt-get install expect | |
set timeout -1 | |
spawn polly login | |
expect "Enter user name:" | |
send -- "$env(POLLY_USER_NAME)\r" | |
expect "Enter password:" | |
send -- "$env(POLLY_USER_PASSWORD)\n" | |
expect eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment