GnuPG exit codes

Werner Koch wk at
Thu Dec 1 17:30:19 CET 2005

On Thu, 01 Dec 2005 07:21:01 -0700, Kurt Fitzner said:

> 0 = success
> 1 = processing error - the command line was a correct command, but GnuPG
> ran into some sort of problems while trying to complete the task

I general any error due to the actual data processing.

> 2 = command error - GnuPG could not start because it could not correctly
> interpret the command line

... or any other system error like missing files or out of memory.

However, there is no clear distinction between the codes and for
proper error reporting you are advised to use the --status-fd



More information about the Gnupg-devel mailing list