Mailing List Archive

How to use --status-fd
Here is how you can use the status output in a script:

eval `gpg -vv --batch --output output --status-fd 2 input 2>&1 | awk '
/^\[GNUPG:\][ \t]+VALIDSIG/ { print "validsig=" $3 ";" }
/^\[GNUPG:\][ \t]+SIG_ID/ { print "sig_id=" $3 "; sig_date=" $4 ";" }
'`

echo "sig_id=$sig_id"



--
Werner Koch at guug.de www.gnupg.org keyid 621CC013