gnupg to encrypt files in a batch processes

Armin Schöch schoech@iap-kborn.de
Wed Mar 20 08:30:01 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Tom !

> Is the solution to use the --passphrase-fd option??  Where can I find
> documentation on this?
>
> gpg -s -e -o - --batch --yes --passphrase-fd n -r myemail@mycompany.com
> /usr/local/BatchMail/mailbox/TestFileMsg

This would be your command

echo PASSPHRASE | gpg -s -e -o - --batch --yes --passphrase-fd 0 -r
myemail@mycompany.com /usr/local/BatchMail/mailbox/TestFileMsg

"0" means stdin stream.

HTH,
Armin

- --
Am Hasenberg 26         office: Institut für Atmosphärenphysik
D-18209 Bad Doberan             Schloss-Straße 6
Tel. ++49-(0)38203/42137        D-18225 Kühlungsborn / GERMANY
Email: schoech@iap-kborn.de     Tel. +49-(0)38293-68-102
WWW: http://armins.cjb.net/     Fax. +49-(0)38293-68-50
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE8mDnMG8Xv4GxznLoRAhiJAKCTIB0BgEizOk4mlEWk3pkOwIRVZACgoYy4
txdEPlT4ZneOYUlZid54fo0=
=0X4R
-----END PGP SIGNATURE-----