Gnupg returning some parameter

Shan Harter shan@systrends.com
Thu Aug 21 16:13:02 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0032_01C36718.32645CA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Well you could do something like this:
 
 @args = (
    split(/,\s*/, $CFG{GPGOptions}),                       <----- parsed
from a configuration file value called GPGOptions
    "-es $sourcefile",
    "$GPGmap{$box}",  # encrypt and sign to mailbox owner
    "$CFG{PublicKeyID}", # and our key so they we can decrypt
    "-u $CFG{PublicKeyID}",  # from us
    "-o $targetfile",    # to target file
   );
   $rc = system($CFG{GPGCommand}, @args) / 256;
 
   ercot::log_debug "GPG returned $rc\n";
 
Shan
Systrends
 

-----Original Message-----
From: Naik, Sachin (Global Repo Systems) [mailto:SNaik@exchange.ml.com]
Sent: Wednesday, August 20, 2003 12:01 PM
To: gnupg-users@gnupg.org
Subject: Gnupg returning some parameter



I need Gnupg to return a parameter indicating the result of
encryption/decryption. How can I achieve this. 

Regards, 

Sachin Naik 
GEF Risk Technology 
Tel: 201-557-2205 (W) 
Fax: 201-557-4406 



_______________________________________________ 
Gnupg-users mailing list 
Gnupg-users@gnupg.org 
http://listsgnupg.org/mailman/listinfo/gnupg-users
<http://lists.gnupg.org/mailman/listinfo/gnupg-users>  


------=_NextPart_000_0032_01C36718.32645CA0
Content-Type: application/ms-tnef;
	name="winmail.dat"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="winmail.dat"

eJ8+IgsTAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANMHCAAUAAwAKAAAAAMALQEB
A5AGANwQAAAoAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADAC4AAAAAAAMANgAA
AAAAHgBwAAEAAAAfAAAAR251cGcgcmV0dXJuaW5nIHNvbWUgcGFy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