how do i get gnupg to read the passphrase from standard in
Tue Mar 26 09:15:01 2002
-----BEGIN PGP SIGNED MESSAGE-----
On Tuesday 26 March 2002 00:09, Tom Strzemieczny wrote:
> Here's what I'm playing with right now:
> encrypt.sh "email@example.com" "firstname.lastname@example.org" "filename"
> where encrypt.sh is:
> #! /bin/sh
> gpg -s -e -o - --batch --passphrase-fd 0 --default-user $1 --yes
> --no-tty -r $2 $3 < -
> But i don't want gpg to hook into the standard out of my BatchMail
> program, but rather the standard out of the ScriptProcess that executed
> the command. I think I am on the right track but don't have any
> difinitive answers yet. Can someone please help?
I don't understand this last paragraph in the light of what you wrote ear=
(it seems to contradict the sentence "I want to do this directly by pipin=
the passphrase into gpg standard in [from BachMail]."), but you might wan=
try and make the script "exec" gpg:
exec gpg -seo ...
Marc Mutz <email@example.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----