popen and two-way communication
Stephen Boulet
stephendotboulet at motorola_._com
Mon Oct 18 18:36:36 EDT 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)
Enter passphrase:
"""
After entering the passphrase the decrypted text gets dumped to the console.
How do I do this with popen?
Stephen
(Too bad the pexpect module doesn't work under windows.)
More information about the Python-list
mailing list