]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/man-notifier.html
Save work.
[thirdparty/cups.git] / doc / help / man-notifier.html
CommitLineData
c277f98c 1<!DOCTYPE HTML>
94436c5a
MS
2<html>
3<!-- SECTION: Man Pages -->
4<head>
5 <link rel="stylesheet" type="text/css" href="../cups-printable.css">
6 <title>notifier(7)</title>
7</head>
8<body>
9<h1 class="title">notifier(7)</h1>
10<h2 class="title"><a name="NAME">Name</a></h2>
11notifier - cups notification interface
12<h2 class="title"><a name="SYNOPSIS">Synopsis</a></h2>
c277f98c
MS
13<b>notifier</b>
14<i>recipient</i>
15[
16<i>user-data</i>
17]
94436c5a
MS
18<h2 class="title"><a name="DESCRIPTION">Description</a></h2>
19The CUPS notifier interface provides a standard method for adding support for
20new event notification methods to CUPS. Each notifier delivers one or more IPP
21events from the standard input to the specified recipient.
22<p>Notifiers <b>must</b> read IPP messages from the standard input using the
23ippNew and ippReadFile functions and exit on error. Notifiers are encouraged to
24exit after a suitable period of inactivity, however they may exit after reading
25the first message or stay running until an error is seen.
26<h2 class="title"><a name="LOG_MESSAGES">Log Messages</a></h2>
27Messages sent to stderr are generally logged to the current <i>ErrorLog</i>.
28Each line begins with a standard prefix:
29
2909c66c
MS
30<dl class="man">
31<dt>ALERT: message
32<dd style="margin-left: 5.0em"><br>
c277f98c 33Sets the printer-state-message attribute and adds the specified
94436c5a
MS
34message to the current <i>ErrorLog</i> using the "alert" log level.
35
2909c66c
MS
36<dt>CRIT: message
37<dd style="margin-left: 5.0em"><br>
c277f98c 38Sets the printer-state-message attribute and adds the specified
94436c5a
MS
39message to the current <i>ErrorLog</i> using the "critical" log level.
40
2909c66c
MS
41<dt>DEBUG: message
42<dd style="margin-left: 5.0em"><br>
c277f98c 43Sets the printer-state-message attribute and adds the specified
94436c5a
MS
44message to the current <i>ErrorLog</i> using the "debug" log level.
45
2909c66c
MS
46<dt>DEBUG2: message
47<dd style="margin-left: 5.0em"><br>
c277f98c 48Sets the printer-state-message attribute and adds the specified
94436c5a
MS
49message to the current <i>ErrorLog</i> using the "debug2" log level.
50
2909c66c
MS
51<dt>EMERG: message
52<dd style="margin-left: 5.0em"><br>
c277f98c 53Sets the printer-state-message attribute and adds the specified
94436c5a
MS
54message to the current <i>ErrorLog</i> using the "emergency" log level.
55
2909c66c
MS
56<dt>ERROR: message
57<dd style="margin-left: 5.0em"><br>
c277f98c 58Sets the printer-state-message attribute and adds the specified
94436c5a
MS
59message to the current <i>ErrorLog</i> using the "error" log level.
60
2909c66c
MS
61<dt>INFO: message
62<dd style="margin-left: 5.0em"><br>
c277f98c 63Sets the printer-state-message attribute. If the current <i>LogLevel</i>
94436c5a
MS
64is set to "debug2", also adds the specified message to the
65current <i>ErrorLog</i> using the "info" log level.
66
2909c66c
MS
67<dt>NOTICE: message
68<dd style="margin-left: 5.0em"><br>
c277f98c 69Sets the printer-state-message attribute and adds the specified
94436c5a
MS
70message to the current <i>ErrorLog</i> using the "notice" log level.
71
2909c66c
MS
72<dt>WARNING: message
73<dd style="margin-left: 5.0em"><br>
c277f98c 74Sets the printer-state-message attribute and adds the specified
94436c5a
MS
75message to the current <i>ErrorLog</i> using the "warning" log level.
76
2909c66c 77</dl>
94436c5a
MS
78<h2 class="title"><a name="ENVIRONMENT_VARIABLES">Environment Variables</a></h2>
79The following environment variables are defined by the CUPS server when
80executing the notifier:
81
2909c66c
MS
82<dl class="man">
83<dt>CHARSET
84<dd style="margin-left: 5.0em"><br>
c277f98c
MS
85The default text character set, typically utf-8.
86
2909c66c
MS
87<dt>CUPS_CACHEDIR
88<dd style="margin-left: 5.0em"><br>
c277f98c
MS
89The directory for semi-persistent cache files can be found.
90
2909c66c
MS
91<dt>CUPS_DATADIR
92<dd style="margin-left: 5.0em"><br>
c277f98c
MS
93The directory where data files can be found.
94
2909c66c
MS
95<dt>CUPS_FILETYPE
96<dd style="margin-left: 5.0em"><br>
c277f98c 97The type of file being printed: "job-sheet" for a banner page and "document"
94436c5a
MS
98for a regular print file.
99
2909c66c
MS
100<dt>CUPS_SERVERROOT
101<dd style="margin-left: 5.0em"><br>
c277f98c
MS
102The root directory of the server.
103
2909c66c
MS
104<dt>LANG
105<dd style="margin-left: 5.0em"><br>
c277f98c
MS
106The default language locale (typically C or en).
107
2909c66c
MS
108<dt>PATH
109<dd style="margin-left: 5.0em"><br>
c277f98c 110The standard execution path for external programs that may be run by
94436c5a
MS
111the filter.
112
2909c66c
MS
113<dt>SOFTWARE
114<dd style="margin-left: 5.0em"><br>
c277f98c
MS
115The name and version number of the server (typically CUPS/1.2).
116
2909c66c
MS
117<dt>TZ
118<dd style="margin-left: 5.0em"><br>
c277f98c
MS
119The timezone of the server.
120
2909c66c
MS
121<dt>USER
122<dd style="margin-left: 5.0em"><br>
c277f98c 123The user executing the filter, typically "lp"; consult the <i>cupsd.conf(5)</i>
94436c5a
MS
124file for the current setting.
125
2909c66c 126</dl>
94436c5a 127<h2 class="title"><a name="SEE_ALSO">See Also</a></h2>
c277f98c 128<i>backend(7)</i>, <i>cupsd(8)</i>, <i>filter(7)</i>,
94436c5a 129<br>
c277f98c 130<a href="http://localhost:631/help">http://localhost:631/help</a>
94436c5a
MS
131<h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
132Copyright 2007-2013 by Apple Inc.
133
134</body>
135</html>