gpg return value problem

Mark Ivs markivs2003 at yahoo.com
Thu Jan 27 19:00:26 CET 2005


Hello,
I am trying to capture the return value from the gpg
command. Documentation says, gpg will return 0 if
successful or return 1 if there's an error.

$errorval = 0;
$errorval = 'gpg --recipient "XXX" --output
$rootpath\\output\\$filepgp --encrypt
$rootpath\\encrypted\\$file';

The value of $errorval is always blank(even if there
is an error in the encryption). When I try to print
$errorval, it is blank.

Any help will be very much appreciated.

Thanks.
-Mark

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Gnupg-users mailing list