_almost_ working, now a command line question...
steve at srevilak.net
Fri Feb 29 23:45:55 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
> From: Maury Markowitz
> Date: Fri, 29 Feb 2008 15:10:47 -0500
> Subject: _almost_ working, now a command line question...
> All that's left now is to fully automate this, and my Windows CMD
> noobishness is an issue. Here's my command line:
> O:\Utilities>echo o:\apricing\pass.txt | o:\utilities\gpg --homedir o:\utilities
> \ --passphrase-fd 0 --load-extension o:\utilities\idea.dll -o "o:\apricing\morga
> n_cds_20080229.txt" -d "o:\apricing\24476.txt.pgp"
> And here are the results (slightly trimmed to protect the innocent):
> Reading passphrase from file descriptor 0
> You need a passphrase to unlock the secret key for
> user: "Polar Securities Inc <kszeto at polarsec.com>"
> 2048-bit ELG-E key, ID 3E396FC9, created 2000-10-27 (main key ID F0ED5CDC)
> gpg: encrypted with 2048-bit ELG-E key, [snip]
> gpg: public key decryption failed: bad passphrase
> pass.txt absolutely has the right key in it. I tried both | and >, the
> later did nothing at all (which I guess makes sense).
produce output of "o:\apricing\pass.txt"?
You might have better luck redirecting gpg's standard input from
pass.txt, like this:
--homedir o:\utilities \
--passphrase-fd 0 \
--load-extension o:\utilities\idea.dll \
-o "o:\apricing\morgan_cds_20080229.txt" \
-d "o:\apricing\24476.txt.pgp" < o:\apricing\pass.txt
Also, be careful of extra whitespace in pass.txt.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (Darwin)
-----END PGP SIGNATURE-----
More information about the Gnupg-users