Mantra via command-line?
Wed May 16 00:22:02 2001
-----BEGIN PGP SIGNED MESSAGE-----
On Tuesday, 15. May 2001 10:07, Arndt Pohlmann wrote:
> I just wanted to know (in order to write some scripts/batch files) if
> there is a way to submit the Matra to gpg via command-line? I want to
> do symmetric en/decoding on a lot of files, and it would not make a
> lot of sense if I had to enter the mantra each time I do this on a
Not via the command line. But you can pass the mantra to gpg via
standard in if you use the command line option "--passphrase-fd 0".
Please note what the man page says about this option:
Read the passphrase from file descriptor n. If
you use 0 for n, the passphrase will be read
from stdin. This can only be used if only
one passphrase is supplied. Don't use this
option if you can avoid it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----