Return Codes

Michael Avila mike at retnet.net
Fri Mar 4 16:40:17 CET 2005


When I execute from a PHP script

$output_array = array();
unset($output_array);
$returncode = 100;
$output = exec("E:\\newfromrn_dev\\pgp\\gpg.exe ".$parms, &$output_array,
&$returncode);

The return code is 2. Is there a place to find what that rc is equal to? The
output_array is empty as well as $output.  Any suggestions where I am going
wrong?


When I execute from the command line

R:\newfromrn_dev\pgp>gpg --batch --options .\gpg.conf --gen-key
mike at retnet.net
gpg: Key data being read.
gpg: Your Name is MichaelAvila
gpg: Your EMail Address is mike at retnet.net
gpg: Key data reading completed.
gpg: Key Generation starting.
gpg: writing public key to `mike at retnet.net.pub'
gpg: writing secret key to `mike at retnet.net.sec'
++++++++++.++++++++++..++++++++++.++++++++++.++++++++++++++++++++++++++++++.++
++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...>+++++......++
++
+
gpg: writing self signature
gpg: DSA/SHA1 signature from: "311B49EC [?]"
gpg: writing self signature
gpg: DSA/SHA1 signature from: "311B49EC [?]"
.++++++++++++++++++++.+++++++++++++++.+++++++++++++++++++++++++.++++++++++++++
++
++++++++++++++++++++++++.++++++++++++++++++++.+++++++++++++++^^^^
gpg: writing key binding signature
gpg: DSA/SHA1 signature from: "311B49EC [?]"
gpg: writing key binding signature
gpg: DSA/SHA1 signature from: "311B49EC [?]"

It works!

All help, suggestions, comments are appreciated.

Thanks.

Mike

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 1670 bytes
Desc: not available
Url : /pipermail/attachments/20050304/5e812a21/winmail.bin


More information about the Gnupg-users mailing list