After running the following command to revoke a key

gpg --gen-revoke <key ID>

I have to then press y, 2 times Enter followed by y

How would you suggest to answer automatically, that is revoking a key without any other user interaction than the passphrase prompt?


1 Answer 1


It appears to me that gpg opens the controlling terminal directly, so you're unable to redirect input.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .