Decryption via UNIX shell script

Albert Reiner areiner at
Tue Mar 15 17:47:14 CET 2005

[kraymer at, Mon, 14 Mar 2005 16:35:07 -0600 (CST)]:
> I am writing a shell script to automatically decrypt an encrypted file
> using GPG.  How do I send the passphrase to the executable (GPG).  I want
> no human intervention on this.  I'm calling the shell script from a batch
> file to decrypt the file.
> Anyone have a UNIX shell script (Korn Shell) that does this?

Read the man page; there is some --...-fd option you can use.


More information about the Gnupg-users mailing list