Non-Zero return code on successful decryption?

carl w spitzer cwsiv_home1 at juno.com
Mon Nov 3 12:19:34 CET 2003


Solaris is a form of *nix.  Return codes are issued so that scripts
running programs can make decisions based on how a particular program
completes its run.

Does Solaris use negative logic generally in tests?

           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 Fri, 31 Oct 2003 11:01:47 -0600 seidls at schneider.com writes:
>Hello,
>
>I have an automated script that will decrypt files that are sent to us 
>over
>FTP.  One file that was received today the file would decrypt without
>issue, but gpg would return with a non zero return code.  It was 
>verified
>that the file could be decrypted from the output sent to the status-fd
>file, and from manually decrypting the file.
>
>I am using gpg 1.2.1 on a solaris box.
>
>Does anyone know why this non-zero return code was issued??
>
>script command
>gpg --options ${gpgoptfle} -o ${outputfile} <${inputfile} 2<${pass} 3>
>${gpglog}
>
>script command excuted (with set -x turned on)
>gpg --options /opt/mailbox/scripts/gpg.options -o
>/opt/mailbox/fawork/pgpwork/send/FILE1~24535
>0< /opt/mailbox/fawork/pgpwork/FILE1.330431088~24535 2<
>/opt/mailbox/etc/gpgdefaultkey + es=2
>[[ 2 != 0 ]]
>
>status-fd file output
>[GNUPG:] ENC_TO AF7F6D910EABD565 16 0
>[GNUPG:] USERID_HINT AF7F6D910EABD565


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



More information about the Gnupg-users mailing list