How to use --status-fd

Werner Koch wk at isil.d.shuttle.de
Sun Mar 14 16:52:31 CET 1999


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




More information about the Gnupg-devel mailing list