diff options
author | Werner Koch <[email protected]> | 2018-02-21 09:17:20 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-02-21 09:17:20 +0000 |
commit | c4d8efb8942fe1d5644c5b2cb8bc73a06ac500df (patch) | |
tree | 44ec7dff64b878442c582a9ecc57c877fa692fb8 | |
parent | wks: Add special mode to --install-key. (diff) | |
download | gnupg-c4d8efb8942fe1d5644c5b2cb8bc73a06ac500df.tar.gz gnupg-c4d8efb8942fe1d5644c5b2cb8bc73a06ac500df.zip |
doc: Add extra hint on unattended use of gpg.
--
-rw-r--r-- | doc/gpg.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/gpg.texi b/doc/gpg.texi index 927d77d35..ddebc692c 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -3781,6 +3781,19 @@ If you are going to verify detached signatures, make sure that the program knows about it; either give both filenames on the command line or use @samp{-} to specify STDIN. +For scripted or other unattended use of @command{gpg} make sure to use +the machine-parseable interface and not the default interface which is +intended for direct use by humans. The machine-parseable interface +provides a stable and well documented API independent of the locale or +future changes of @command{gpg}. To enable this interface use the +options @option{--with-colons} and @option{--status-fd}. For certain +operations the option @option{--command-fd} may come handy too. See +this man page and the file @file{DETAILS} for the specification of the +interface. Note that the GnuPG ``info'' pages as well as the PDF +version of the GnuPG manual features a chapter on unattended use of +GnuPG. As an alternative the library @command{GPGME} can be used as a +high-level abstraction on top of that interface. + @mansect interoperability @chapheading INTEROPERABILITY WITH OTHER OPENPGP PROGRAMS |