Skip to content

Instantly share code, notes, and snippets.

@GeorgeSabu
Created March 17, 2021 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeorgeSabu/0275ed2043f4f4c970b6aa86fbed9d7d to your computer and use it in GitHub Desktop.
Save GeorgeSabu/0275ed2043f4f4c970b6aa86fbed9d7d to your computer and use it in GitHub Desktop.
#!/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