Testing the exit status
Werner Koch
wk at gnupg.org
Sat Oct 10 16:14:09 CEST 2009
On Fri, 9 Oct 2009 13:47, David.Gray at turpin-distribution.com said:
> Does GPG return different status codes when it exits?
> I'm specifically looking for different types of error, such
> as file not found, key not found, invalid passphrase etc.
This would not be reliable. There are just too many stati to map them
to exit codes. What you need to do is to use the status lines
(--status-fd N) - or just go with gpgme.
Shalom-Salam,
Werner
--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.
More information about the Gnupg-users
mailing list