gpg return value problem

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

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

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.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Gnupg-users mailing list