One way of using the status-fd in linux is as follows: GPG="${PGP_LOCATION}gpg --status-fd 2 --passphrase-fd 0 --no-verbose --batch --output ${OUTPUT} --decrypt ${DOUTPUT}"
echo "GPG:${GPG}" ${GPG} 2>&1 >> ${STATUS} < ${PASSFILE}
GPG="${PGP_LOCATION}gpg --status-fd 2 --passphrase-fd 0 --no-verbose --batch --output ${OUTPUT} --decrypt ${DOUTPUT}"
echo "GPG:${GPG}"
${GPG} 2>&1 >> ${STATUS} < ${PASSFILE}
Note that all the shell variables are set up to point to the right values. Output from gpg is captured in the ${STATUS}${STATUS} ( a file ) ...