1WATCHGNUPG(1)                GNU Privacy Guard 2.2               WATCHGNUPG(1)
2
3
4

NAME

6       watchgnupg - Read and print logs from a socket
7

SYNOPSIS

9       watchgnupg [--force] [--verbose] socketname
10
11

DESCRIPTION

13       Most  of the main utilities are able to write their log files to a Unix
14       Domain socket if configured that way.  watchgnupg is a simple  listener
15       for  such  a  socket.   It ameliorates the output with a time stamp and
16       makes sure that long lines are not interspersed with  log  output  from
17       other utilities.  This tool is not available for Windows.
18
19
20
21       watchgnupg is commonly invoked as
22
23         watchgnupg --force $(gpgconf --list-dirs socketdir)/S.log
24
25

OPTIONS

27       watchgnupg understands these options:
28
29
30
31       --force
32              Delete an already existing socket file.
33
34
35
36       --tcp n
37              Instead  of  reading from a local socket, listen for connects on
38              TCP port n.
39
40
41       --time-only
42              Do not print the date part of the timestamp.
43
44
45       --verbose
46              Enable extra informational output.
47
48
49       --version
50              Print version of the program and exit.
51
52
53       --help Display a brief help page and exit.
54
55

EXAMPLES

57         $ watchgnupg --force --time-only $(gpgconf --list-dirs socketdir)/S.log
58
59       This   waits   for   connections   on   the    local    socket    (e.g.
60/home/foo/.gnupg/S.log’) and shows all log entries.  To make this work
61       the option log-file needs to be used with all modules which logs are to
62       be shown.  The suggested entry for the configuration files is:
63
64         log-file socket://
65
66       If  the  default  socket as given above and returned by "echo $(gpgconf
67       --list-dirs socketdir)/S.log" is not desired an arbitrary  socket  name
68       can  be  specified, for example ‘socket:///home/foo/bar/mysocket’.  For
69       debugging purposes it is also possible to do remote logging.  Take care
70       if  you  use  this feature because the information is send in the clear
71       over the network.  Use this syntax in the conf files:
72
73         log-file tcp://192.168.1.1:4711
74
75       You may use any port  and  not  just  4711  as  shown  above;  only  IP
76       addresses  are  supported  (v4  and v6) and no host names.  You need to
77       start watchgnupg with the tcp option.  Note that under Windows the reg‐
78       istry  entry  HKCU\Software\GNU\GnuPG:DefaultLogFile  can  be  used  to
79       change the default log output from stderr to whatever is given by  that
80       entry.   However  the only useful entry is a TCP name for remote debug‐
81       ging.
82
83
84

SEE ALSO

86       gpg(1), gpgsm(1), gpg-agent(1), scdaemon(1)
87
88       The full documentation for this tool is maintained as a Texinfo manual.
89       If  GnuPG and the info program are properly installed at your site, the
90       command
91
92         info gnupg
93
94       should give you access to the complete manual including a  menu  struc‐
95       ture and an index.
96
97
98
99
100
101
102
103
104
105
106
107GnuPG 2.2.20                      2020-03-18                     WATCHGNUPG(1)
Impressum