I'm trying to encrypt a .tar.gz with a passphrase from a shell script. I've tried gpg2 --passphrase whatever -c but then gnupg-agent pops up a dialog asking for a password.

Never used GnuPG before so i know nothing about it.

link|improve this question

1  
--batch (15 characters) – new123456 Jan 13 '11 at 18:31
It's better not to pass passwords as arguments. Use gpg --passphrase-file filename instead. – Dennis Williamson Jan 13 '11 at 19:51
1  
--batch --passphrase did the job. Knew about passphrase-file but i gain nothing from it. – ggustafsson Jan 13 '11 at 22:33
feedback

1 Answer

up vote 0 down vote accepted

The answer is --batch flag. User new123456 commented above.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.