Skip to content

Instantly share code, notes, and snippets.

@AdamOssenford
Created September 23, 2015 04:55
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 AdamOssenford/f13f8c76b8757887b66a to your computer and use it in GitHub Desktop.
Save AdamOssenford/f13f8c76b8757887b66a to your computer and use it in GitHub Desktop.
MYPWD="w00t"
expect -c '
spawn zip blap.zip blah -e
expect {
"*Enter password*" { send "'"$MYPWD"'\r"
exp_continue
}
"*Verify password*" { send "'"$MYPWD"'\r"
exp_continue
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment