Hi, Thanks for the input. Can you tell me what the numeric arguments are for status-fd? I've downloaded the source for GPG and looked at the doc/DETAILS file but on Windows this is unreadable.
Also it seems as if gpgme is not available for Windows, is this correct? I'm running GPG from a C# application using the Process class. If I understand correctly then you are suggesting I use status-fd to redirect to a file and then open this to interrogate the results. Thanks & regards Dave -----Original Message----- From: Werner Koch [mailto:[email protected]] Sent: 10 October 2009 15:14 To: David Gray Cc: [email protected] Subject: Re: Testing the exit status On Fri, 9 Oct 2009 13:47, [email protected] 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. Registered Office: Turpin Distribution Services Ltd, Pegasus Drive, Stratton Business Park, Biggleswade, Bedfordshire, SG18 8TQ, UK. ***** Registered in England No. 1331778 ***** This email may contain confidential information and/or copyright material. This email is intended for the use of the addressee only. Any unauthorised use may be unlawful. If you receive this email by mistake, please advise the sender immediately by using the reply facility in your email software. _______________________________________________ Gnupg-users mailing list [email protected] http://lists.gnupg.org/mailman/listinfo/gnupg-users
