1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. |
---|
2 | .TH PKNOTIFY "1" "d�mbre 2007" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" |
---|
3 | .SH NOM |
---|
4 | pknotify \- page de manuel de pknotify 1.27alpha3_BROKEN_unofficial |
---|
5 | .SH DESCRIPTION |
---|
6 | pknotify v1.27alpha3_BROKEN_unofficial (c) 2003, 2004, 2005, 2006, 2007 Jerome Alet \- alet@librelogiciel.com |
---|
7 | .PP |
---|
8 | Notifies or ask questions to end users who launched the PyKotIcon application. |
---|
9 | .PP |
---|
10 | command line usage : |
---|
11 | .TP |
---|
12 | pknotify |
---|
13 | [options] [arguments] |
---|
14 | .PP |
---|
15 | options : |
---|
16 | .TP |
---|
17 | \fB\-v\fR | \fB\-\-version\fR |
---|
18 | Prints pknotify's version number then exits. |
---|
19 | .TP |
---|
20 | \fB\-h\fR | \fB\-\-help\fR |
---|
21 | Prints this message then exits. |
---|
22 | .TP |
---|
23 | \fB\-d\fR | \fB\-\-destination\fR h[:p] |
---|
24 | Sets the destination hostname and optional |
---|
25 | port onto which contact the remote PyKotIcon |
---|
26 | application. This option is mandatory. |
---|
27 | When not specified, the port defaults to 7654. |
---|
28 | .TP |
---|
29 | \fB\-a\fR | \fB\-\-ask\fR |
---|
30 | Tells pknotify to ask something to the end |
---|
31 | user. Then pknotify will output the result. |
---|
32 | .TP |
---|
33 | \fB\-C\fR | \fB\-\-checkauth\fR |
---|
34 | When \fB\-\-ask\fR is used and both an 'username' and a |
---|
35 | \&'password' are asked to the end user, then |
---|
36 | pknotify will try to authenticate the user |
---|
37 | through PAM. If authentified, this program |
---|
38 | will print "AUTH=YES", else "AUTH=NO". |
---|
39 | If a field is missing, "AUTH=IMPOSSIBLE" will |
---|
40 | be printed. If the user is authenticated, then |
---|
41 | "USERNAME=xxxx" will be printed as well. |
---|
42 | .TP |
---|
43 | \fB\-c\fR | \fB\-\-confirm\fR |
---|
44 | Tells pknotify to ask for either a confirmation |
---|
45 | or abortion. |
---|
46 | .TP |
---|
47 | \fB\-D\fR | \fB\-\-denyafter\fR N |
---|
48 | With \fB\-\-checkauth\fR above, makes pknotify loop |
---|
49 | up to N times if the password is incorrect. |
---|
50 | After having reached the limit, "DENY" will |
---|
51 | be printed, which effectively rejects the job. |
---|
52 | The default value of N is 1, meaning the job |
---|
53 | is denied after the first unsuccessful try. |
---|
54 | .TP |
---|
55 | \fB\-N\fR | \fB\-\-noremote\fR action |
---|
56 | If it's impossible to connect to the remote |
---|
57 | PyKotIcon machine, do this action instead. |
---|
58 | Allowed actions are 'CONTINUE' and 'CANCEL', |
---|
59 | which will respectively allow the processing |
---|
60 | of the print job to continue, or the job to |
---|
61 | be cancelled. The default value is CANCEL. |
---|
62 | .TP |
---|
63 | \fB\-n\fR | \fB\-\-notify\fR |
---|
64 | Tells pknotify to send an informational message |
---|
65 | to the end user. |
---|
66 | .TP |
---|
67 | \fB\-q\fR | \fB\-\-quit\fR |
---|
68 | Tells pknotify to send a message asking the |
---|
69 | PyKotIcon application to exit. This option can |
---|
70 | be combined with the other ones to make PyKotIcon |
---|
71 | exit after having sent the answer from the dialog. |
---|
72 | .TP |
---|
73 | \fB\-t\fR | \fB\-\-timeout\fR T |
---|
74 | Tells pknotify to ignore the end user's answer if |
---|
75 | it comes past T seconds after the dialog box being |
---|
76 | opened. The default value is 0 seconds, which |
---|
77 | tells pknotify to wait indefinitely. |
---|
78 | Use this option to avoid having an user who |
---|
79 | leaved his computer stall a whole print queue. |
---|
80 | .IP |
---|
81 | You MUST specify either \fB\-\-ask\fR, \fB\-\-confirm\fR, \fB\-\-notify\fR or \fB\-\-quit\fR. |
---|
82 | .IP |
---|
83 | arguments : |
---|
84 | .HP |
---|
85 | \fB\-a\fR | \fB\-\-ask\fR : Several arguments are accepted, of the form |
---|
86 | .IP |
---|
87 | "label:varname:defaultvalue". The result will |
---|
88 | be printed to stdout in the following format : |
---|
89 | VAR1NAME=VAR1VALUE |
---|
90 | VAR2NAME=VAR2VALUE |
---|
91 | \&... |
---|
92 | If the dialog was cancelled, nothing will be |
---|
93 | printed. If one of the varname is 'password' |
---|
94 | then this field is asked as a password (you won't |
---|
95 | see what you type in), and is NOT printed. Although |
---|
96 | it is not printed, it will be used to check if |
---|
97 | authentication is valid if you specify \fB\-\-checkauth\fR. |
---|
98 | .TP |
---|
99 | \fB\-c\fR | \fB\-\-confirm\fR : A single argument is expected, representing the |
---|
100 | message to display. If the dialog is confirmed |
---|
101 | then pknotify will print OK, else CANCEL. |
---|
102 | .TP |
---|
103 | \fB\-n\fR | \fB\-\-notify\fR : A single argument is expected, representing the |
---|
104 | message to display. In this case pknotify will |
---|
105 | always print OK. |
---|
106 | .PP |
---|
107 | examples : |
---|
108 | .IP |
---|
109 | pknotify \fB\-d\fR client:7654 \fB\-\-noremote\fR CONTINUE \fB\-\-confirm\fR "This job costs 10 credits" |
---|
110 | .IP |
---|
111 | Would display the cost of the print job and asks for confirmation. |
---|
112 | If the end user doesn't have PyKotIcon running and accepting connections |
---|
113 | from the print server, PyKota will consider that the end user accepted |
---|
114 | to print this job. |
---|
115 | .IP |
---|
116 | pknotify \fB\-\-destination\fR $PYKOTAJOBORIGINATINGHOSTNAME:7654 \e |
---|
117 | .IP |
---|
118 | \fB\-\-checkauth\fR \fB\-\-ask\fR "Your name:username:" "Your password:password:" |
---|
119 | .IP |
---|
120 | Asks an username and password, and checks if they are valid. |
---|
121 | NB : The PYKOTAJOBORIGINATINGHOSTNAME environment variable is |
---|
122 | only set if you launch pknotify from cupspykota through a directive |
---|
123 | in ~pykota/pykota.conf |
---|
124 | .IP |
---|
125 | The TCP port you'll use must be reachable on the client from the |
---|
126 | print server. |
---|
127 | .PP |
---|
128 | (c) 2003, 2004, 2005, 2006, 2007 Jerome Alet <alet@librelogiciel.com> |
---|
129 | This program is free software: you can redistribute it and/or modify |
---|
130 | it under the terms of the GNU General Public License as published by |
---|
131 | the Free Software Foundation, either version 3 of the License, or |
---|
132 | (at your option) any later version. |
---|
133 | .PP |
---|
134 | This program is distributed in the hope that it will be useful, |
---|
135 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
136 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
137 | GNU General Public License for more details. |
---|
138 | .PP |
---|
139 | You should have received a copy of the GNU General Public License |
---|
140 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
141 | .PP |
---|
142 | Please report bugs to : Jerome Alet \- alet@librelogiciel.com |
---|