]> git.ipfire.org Git - thirdparty/cups.git/blame - man/notifier.man
Import CUPS v1.7.1
[thirdparty/cups.git] / man / notifier.man
CommitLineData
6c663ae2 1.\"
61515785 2.\" "$Id: notifier.man 11022 2013-06-06 22:14:09Z msweet $"
6c663ae2
MS
3.\"
4.\" notifier man page for CUPS.
5.\"
0fa6c7fa 6.\" Copyright 2007-2013 by Apple Inc.
6c663ae2
MS
7.\" Copyright 1997-2007 by Easy Software Products.
8.\"
9.\" These coded instructions, statements, and computer programs are the
10.\" property of Apple Inc. and are protected by Federal copyright
11.\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
12.\" which should have been included with this file. If this file is
13.\" file is missing or damaged, see the license at "http://www.cups.org/".
14.\"
15.TH notifier 7 "CUPS" "12 May 2009" "Apple Inc."
16.SH NAME
17notifier \- cups notification interface
18.SH SYNOPSIS
19.B notifier
20.I recipient
21[
22.I user-data
23]
24.SH DESCRIPTION
25The CUPS notifier interface provides a standard method for adding support for
26new event notification methods to CUPS. Each notifier delivers one or more IPP
27events from the standard input to the specified recipient.
28.LP
29Notifiers \fBmust\fR read IPP messages from the standard input using the
30ippNew and ippReadFile functions and exit on error. Notifiers are encouraged to
31exit after a suitable period of inactivity, however they may exit after reading
32the first message or stay running until an error is seen.
33.SH LOG MESSAGES
34Messages sent to stderr are generally logged to the current \fIErrorLog\fR.
35Each line begins with a standard prefix:
36
37.TP 5
38ALERT: message
39.br
40Sets the printer-state-message attribute and adds the specified
41message to the current \fIErrorLog\fR using the "alert" log level.
42
43.TP 5
44CRIT: message
45.br
46Sets the printer-state-message attribute and adds the specified
47message to the current \fIErrorLog\fR using the "critical" log level.
48
49.TP 5
50DEBUG: message
51.br
52Sets the printer-state-message attribute and adds the specified
53message to the current \fIErrorLog\fR using the "debug" log level.
54
55.TP 5
56DEBUG2: message
57.br
58Sets the printer-state-message attribute and adds the specified
59message to the current \fIErrorLog\fR using the "debug2" log level.
60
61.TP 5
62EMERG: message
63.br
64Sets the printer-state-message attribute and adds the specified
65message to the current \fIErrorLog\fR using the "emergency" log level.
66
67.TP 5
68ERROR: message
69.br
70Sets the printer-state-message attribute and adds the specified
71message to the current \fIErrorLog\fR using the "error" log level.
72
73.TP 5
74INFO: message
75.br
76Sets the printer-state-message attribute. If the current \fILogLevel\fR
77is set to "debug2", also adds the specified message to the
78current \fIErrorLog\fR using the "info" log level.
79
80.TP 5
81NOTICE: message
82.br
83Sets the printer-state-message attribute and adds the specified
84message to the current \fIErrorLog\fR using the "notice" log level.
85
86.TP 5
87WARNING: message
88.br
89Sets the printer-state-message attribute and adds the specified
90message to the current \fIErrorLog\fR using the "warning" log level.
91
92.SH ENVIRONMENT VARIABLES
93The following environment variables are defined by the CUPS server when
94executing the notifier:
95
96.TP 5
97CHARSET
98.br
99The default text character set, typically utf-8.
100
101.TP 5
102CUPS_CACHEDIR
103.br
104The directory for semi-persistent cache files can be found.
105
106.TP 5
107CUPS_DATADIR
108.br
109The directory where data files can be found.
110
111.TP 5
112CUPS_FILETYPE
113.br
114The type of file being printed: "job-sheet" for a banner page and "document"
115for a regular print file.
116
117.TP 5
118CUPS_SERVERROOT
119.br
120The root directory of the server.
121
122.TP 5
123LANG
124.br
125The default language locale (typically C or en).
126
127.TP 5
128PATH
129.br
130The standard execution path for external programs that may be run by
131the filter.
132
133.TP 5
134SOFTWARE
135.br
136The name and version number of the server (typically CUPS/1.2).
137
138.TP 5
139TZ
140.br
141The timezone of the server.
142
143.TP 5
144USER
145.br
146The user executing the filter, typically "lp"; consult the \fIcupsd.conf(5)\fR
147file for the current setting.
148
149.SH SEE ALSO
150\fIbackend(7)\fR, \fIcupsd(8)\fR, \fIfilter(7)\fR,
151.br
152http://localhost:631/help
153.SH COPYRIGHT
0fa6c7fa 154Copyright 2007-2013 by Apple Inc.
6c663ae2 155.\"
61515785 156.\" End of "$Id: notifier.man 11022 2013-06-06 22:14:09Z msweet $".
6c663ae2 157.\"