Non-Zero return code on successful decryption?

carl w spitzer cwsiv_home1 at
Wed Nov 12 18:18:41 CET 2003

usually a zero return code means successful completion and nonzero a
I was not sure if solaris used positive or negative logic relating to
return codes.
If negative then a nonzero return indicates success.
if positive then a nonzero rethrn indicates failure.

           o                     _______________________________
         o      _____            |     CWSIV_HOME1 at JUNO.COM    |
       .][__n_n_|DD[  ====_____  | M A R K L I N   T R A I N S |
     >   (________|__|_[_________]_|___________________________|
    _/oo OOOOO oo`  ooo   ooo  'o!o!o                 o!o!o`

On Tue, 4 Nov 2003 17:39:43 -0600 seidls at writes:
>I'm not quite sure what you are looking for with your question.
>What I can tell you is that in the shell script I am running, I check 
>return code produced from gpg.  If this code is not zero, the script 
>die and cause the team to get paged.
>In the case originally describe, we were page and had to look into why 
>particular file did not decrypt.  Running the same gpg command from 
>command prompt appeared to run without issue (ie the file was 
>What I was trying to determine by posting here is why the return code 
>of 2
>was issued, even though I could manually decrypt the file.
>Can you please explain in more detail what would cause the gpg:
>block_filter: 1st length byte missing message?   Did something not 
>fine on the sender side?  Was there an issue during the transmission 
>of the
>file?  What else can be done to determine the cause?
>Thanks Everyone.
>Scott Seidl
>Electronic Communication Services
>seidls at
>Tel) 920-592-2163
>This document, and any attachments therein, contains proprietary and
>confidential information that may not be disclosed without the prior
>written permission of Schneider National, Inc. and its subsidiaries.
>Unauthorized use or misuse of this information and its contents is 
>prohibited. Schneider National, Inc. vigorously protects its rights.

The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit to sign up today!

More information about the Gnupg-users mailing list