Mantra via command-line?
Ingo Klöcker
ingo.kloecker@epost.de
Wed May 16 00:22:02 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
> file...
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:
--passphrase-fd n
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.
Regards,
Ingo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7Aaq+GnR+RTDgudgRAmRJAJ9uklR1olq8ROA+aWTBarn4Lt9iowCfTspR
SYOZXA9jZN/kXzVvDT6SQOk=
=Y4Q5
-----END PGP SIGNATURE-----