Talking to GPG on Linux through os.popen

Peter Schneider-Kamp nowonder at nowonder.de
Thu Aug 17 11:23:32 EDT 2000


"Morten W. Petersen" wrote:
> 
> import os
> 
> f = os.popen('gpg --sign gpgtest.py','w')
> f.write("Test\n")
> 
> Doesn't work for me, and I'm a bit baffled (and annoyed) because I can't
> find the problem.

I'm not surprised by this. Try for example:

echo Test | gpg --sign gpgtest.py

or

echo Test > dummbrot
cat dummbrot | gpg --sign gpgtest.py

gpg does not accept the passphrase from a pipe.

Peter
-- 
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list