Danke für eure Antworten
Die Nach(installation) des Modules hat wunderbar geklappt. Aber so ganz laufen will es noch nicht:
Code: Alles auswählen
cmd = []
cmd.append('/home/user/pgp/linux/pgp')
cmd.append('/home/user/tnb_vnb_ein/' + str(item))
cmd.append('-o')
cmd.append('/home/user/tnb_vnb_ein/decrypt/' + str(id))
proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE)
proc.stdin.write("PW\n")
proc.wait()
bei dieser Version bleibt das PGP einfach stehen:
[user@nl2 ~]$ python encrypt_decrypt.py
No configuration file found.
Pretty Good Privacy(tm) 2.6.3ia-multi06 - Public-key encryption for the masses
(c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 2002-04-22
International version - for use everywhere (including USA).
Current time: 2007/05/22 11:01 GMT
PGP is now using IDEA with MD5.
______
Code: Alles auswählen
cmd = []
cmd.append('/home/user/pgp/linux/pgp')
cmd.append('/home/user/tnb_vnb_ein/' + str(item))
cmd.append('-o')
cmd.append('/home/user/tnb_vnb_ein/decrypt/' + str(id))
proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
proc.stdin.write("PW\n")
proc.stdin.close()
proc.stdout.read()
proc.stdout.close()
proc.wait()
hier bleibt es auch stehen, allerdings bekomme ich wieder ein Prompt(wahrscheinlich durch wait(), oder?)
[user@nl2 ~]$ python encrypt_decrypt.py
No configuration file found.
Pretty Good Privacy(tm) 2.6.3ia-multi06 - Public-key encryption for the masses
(c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 2002-04-22
International version - for use everywhere (including USA).
Current time: 2007/05/22 11:36 GMT
PGP is now using IDEA with MD5.
[user@nl2 ~]$
______
wenn ich das PW manuell eingebe(also nur den Befehl ausführen lasse) sieht das ganze so aus:
[user@nl2 ~]$ python encrypt_decrypt.py
No configuration file found.
Pretty Good Privacy(tm) 2.6.3ia-multi06 - Public-key encryption for the masses
(c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 2002-04-22
International version - for use everywhere (including USA).
Current time: 2007/05/22 12:17 GMT
PGP is now using IDEA with MD5.
File is encrypted. Secret key is required to read it.
Key for user ID: user
1024-bit key, key ID 37B31CE1, created 2007/04/19
You need a pass phrase to unlock your RSA secret key.
Enter pass phrase: Pass phrase is good. Just a moment....IDEA..
File has signature. Public key is required to check signature.
.
Good signature from user "user".
Signature made 2007/05/15 14:18 GMT using 1024-bit key, key ID 37B31CE1
Signature made using MD5
Plaintext filename: /home/user/tnb_vnb_ein/decrypt/EOD_200705160821_000045_00_D012-XXX_D001-033.DAT
No configuration file found.
Pretty Good Privacy(tm) 2.6.3ia-multi06 - Public-key encryption for the masses
(c) 1990-96 Philip Zimmermann, Phil's Pretty Good Software. 2002-04-22
International version - for use everywhere (including USA).
Current time: 2007/05/22 12:17 GMT
PGP is now using IDEA with MD5.
File is encrypted. Secret key is required to read it.
Key for user ID: user
1024-bit key, key ID 37B31CE1, created 2007/04/19
You need a pass phrase to unlock your RSA secret key.
Enter pass phrase: Pass phrase is good. Just a moment....IDEA..
File has signature. Public key is required to check signature.
.
Good signature from user "user".
Signature made 2007/05/15 14:19 GMT using 1024-bit key, key ID 37B31CE1
Signature made using MD5
Plaintext filename: /home/user/tnb_vnb_ein/decrypt/EOD_012345678901_000023_00_D012-XXX_D001-033.DAT
[user@nl2 ~]$
______
ich habe keine Ahnung was ich falsch mache, hat jemand eine Idee? Wäre echt super.
@BlackJack:
sorry - werde ich in Zukunft machen, war gestern schon ein wenig genervt(soll aber kein Vorwand sein - schließlich bekommt man ja hier Hilfe)
Gruß netdoobage