Skip to content

Instantly share code, notes, and snippets.

@hguemar
Created May 8, 2016 00:39
Show Gist options
  • Save hguemar/639e03609296620fe2c18325f68b44e4 to your computer and use it in GitHub Desktop.
Save hguemar/639e03609296620fe2c18325f68b44e4 to your computer and use it in GitHub Desktop.
#!/usr/bin/expect -f
spawn rpm --addsign {*}$argv
expect -exact "Enter pass phrase: "
send -- "Secret passphrase\r"
expect eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment