popen and two-way communication
cmkl
cmkleffner at gmx.de
Tue Oct 19 07:55:36 EDT 2004
More information about the Python-list mailing list
Tue Oct 19 07:55:36 EDT 2004
- Previous message (by thread): popen and two-way communication
- Next message (by thread): popen and two-way communication
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You may be interested in the new subprocess module: 1) PEP: http://www.python.org/dev/doc/devel/whatsnew/node8.html 2) source code: http://www.lysator.liu.se/~astrand/popen5/ 3) Windows builds (pre Python-2.4): http://effbot.org/downloads/#subprocess Regards Carl Stephen Boulet <stephendotboulet at motorola_._com> wrote in message news:<cl1gmk$rgq$1 at newshost.mot.com>... > 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.)
- Previous message (by thread): popen and two-way communication
- Next message (by thread): popen and two-way communication
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list