popen and two-way communication
stephendotboulet at motorola_._com
Tue Oct 19 00:36:36 CEST 2004
I'd like to use popen for a little script to call gnu privacy guard and
display decrypted text to a window.
Working from the dos prompt I can type in:
"gpg -d <filename>"
But then gpg then comes back at me with something like:
You need a passphrase to unlock the secret key for
user: "xxxx <xx at somewhere.net>"
1024-bit ELG-E key, ID xxxxxx, created 2004-04-27 (main key ID xxxxxx)
After entering the passphrase the decrypted text gets dumped to the console.
How do I do this with popen?
(Too bad the pexpect module doesn't work under windows.)
More information about the Python-list