On 20 Mar 2002, Helmut Waitzmann wrote: > put the PASSPHRASE into a file, for example > /usr/local/BatchMail/passphrase, and then use the command > gpg -s -e -o - --batch --yes --passphrase-fd 0 -r If you wish to avoid the file, I would suggest something along: $ cat << EOF | gpg --passphrase-fd-0 [...] ThisIsTheSecretPassphrase EOF this way, the pipe would probably(?) never make it to disk.