Using passphase-fd from within a batch procedure

Todd Freedom_Lover at pobox.com
Wed May 12 15:47:39 CEST 2004


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

Dave.Fragiacomo at pb.com wrote:
> I tried your suggestion but it didn't work.  I received the
> following output from the execution of the batch file....
>
> gpg: public key decryption failed: bad passphrase
> gpg: encrypted with ELG-E key, ID A5A2229C
> gpg: decryption failed: secret key not available

I recall reading here on this list that when you use echo into a pipe,
you need to have the pipe directly after the %1, as windows will pass
the space between the %1 and the pipe to gpg as part of the
passphrase.

This is just from memory though.  I don't use windows, let alone the
windows excuse for a shell.

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Teach a man to make fire, and he will be warm for a day.  Set a man on
fire, and he will be warm for the rest of his life.
    -- John A. Hrastar

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iD8DBQFAoir6uv+09NZUB1oRAnt/AKD811wvWbqbrE/nOEKIJSei1uFzJwCgzWB/
OJcyePRmK2zxzKP3DraARi8=
=z9+4
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list