Browse Source

man: Describe notification events.

Georgi Chorbadzhiyski 12 years ago
parent
commit
92b584b14d
1 changed files with 32 additions and 0 deletions
  1. 32
    0
      tsdecrypt.1

+ 32
- 0
tsdecrypt.1 View File

@@ -26,6 +26,8 @@ this option to work \fB\-\-ident\fR should also be used.
26 26
 
27 27
 You can use \fBnotify-script.example\fR file as notification program
28 28
 and an example on how to create your own notification script.
29
+
30
+See \fBEVENTS\fR section for detailed description of the events.
29 31
 .TP
30 32
 \fB\-l\fR, \fB\-\-syslog\-host\fR <addr>
31 33
 Set syslog host. tsdecrypt sends messages to this host over tcp in
@@ -162,6 +164,36 @@ reports are not affected by this option.
162 164
 \fB\-J\fR, \fB\-\-cw\-warn\-time\fR <seconds>
163 165
 After how much seconds to warn if valid code word was not received.
164 166
 The default is \fB20\fR seconds. Set to \fB0\fR to disable the warning.
167
+.SH EVENTS
168
+Notification events are sent when \fB\-\-notify\-program\fR and \fB\-\-ident\fR
169
+options are used. The event parameters are set as environmental variables
170
+before executing the external notification program. The variables are:
171
+
172
+  \fB_TS\fR             Unix timestamp of the event.
173
+  \fB_IDENT\fR          tsdecrypt ident parameter with "/" replaced by "-".
174
+  \fB_MESSAGE_ID\fR     Event message id (for example START, STOP, etc...).
175
+  \fB_MESSAGE_MSG\fR    Event message id with "_" replaced by " ".
176
+  \fB_MESSAGE_TEXT\fR   Event message text. Human readable event message.
177
+
178
+currently defined events are:
179
+
180
+  \fBSTART\fR           tsdecrypt was started.
181
+
182
+  \fBCODE_WORD_OK\fR    Valid code word was received and decryption is
183
+                  working ok.
184
+
185
+  \fBNO_CODE_WORD\fR    No valid code word was received for X seconds. The
186
+                  decryption process have been suspended until valid
187
+                  code word is received.
188
+
189
+  \fBINPUT_TIMEOUT\fR   There was no data on the input.
190
+
191
+  \fBINPUT_OK\fR        The data have appeared on the input.
192
+
193
+  \fBSTOP\fR            tsdecrypt was stopped.
194
+
195
+See \fBnotify-script.example\fR for an example on how to create external
196
+notification program.
165 197
 .SH SEE ALSO
166 198
 See the README file for more information. If you have questions, remarks,
167 199
 problems or you just want to contact the developer, write to:

Loading…
Cancel
Save