1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.41.1. |
---|
2 | .TH PKREFUND "1" "janvier 2013" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" |
---|
3 | .SH NOM |
---|
4 | pkrefund \- page de manuel de pkrefund (PyKota) 1.27alpha14_unofficial |
---|
5 | .SH SYNOPSIS |
---|
6 | .B pkrefund |
---|
7 | [\fIoptions\fR] [\fIfilterexpr\fR] |
---|
8 | .SH DESCRIPTION |
---|
9 | Refunding tool for PyKota. |
---|
10 | .SH OPTIONS |
---|
11 | .TP |
---|
12 | \fB\-h\fR, \fB\-\-help\fR |
---|
13 | show this help message and exit. |
---|
14 | .TP |
---|
15 | \fB\-v\fR, \fB\-\-version\fR |
---|
16 | show the version number and exit. |
---|
17 | .TP |
---|
18 | \fB\-A\fR ARGUMENTSFILE, \fB\-\-arguments\fR=\fIARGUMENTSFILE\fR |
---|
19 | loads additional options and arguments from a file, |
---|
20 | one per line. |
---|
21 | .TP |
---|
22 | \fB\-f\fR, \fB\-\-force\fR |
---|
23 | Doesn't ask for confirmation before refunding. Only |
---|
24 | needed if you specify a filename for the PDF receipts. |
---|
25 | If you send such receipts to stdout, \fB\-\-force\fR is |
---|
26 | assumed to be set. |
---|
27 | .TP |
---|
28 | \fB\-i\fR INFO, \fB\-\-info\fR=\fIINFO\fR |
---|
29 | The informations to be prepended to the refunding |
---|
30 | reason, which can include some of Python's string |
---|
31 | interpolations to access to certain internal values. |
---|
32 | If you don't want such information, set this |
---|
33 | explicitely to an empty string. The default is |
---|
34 | \&'''Refunded %(nbpages)i pages and %(nbcredits).3f |
---|
35 | credits by %(effectiveuser)s (%(loginname)s) on |
---|
36 | %(date)s''' |
---|
37 | .TP |
---|
38 | \fB\-l\fR LOGO, \fB\-\-logo\fR=\fILOGO\fR |
---|
39 | The image to use as a logo. The logo will be drawn at |
---|
40 | the center top of the page. The default logo is |
---|
41 | \fI/usr/share/pykota/logos/pykota.jpeg\fP. |
---|
42 | .TP |
---|
43 | \fB\-n\fR NUMBER, \fB\-\-number\fR=\fINUMBER\fR |
---|
44 | Sets the number of the first receipt. This number will |
---|
45 | automatically be incremented for each receipt. The |
---|
46 | default value is 1. |
---|
47 | .TP |
---|
48 | \fB\-o\fR OUTPUT, \fB\-\-output\fR=\fIOUTPUT\fR |
---|
49 | The name of the file to which the PDF receipts will be |
---|
50 | written. If not set or set to '\-', the PDF document |
---|
51 | will be sent to the standard output, and \fB\-\-force\fR will |
---|
52 | be assumed to be set. |
---|
53 | .TP |
---|
54 | \fB\-p\fR PAGESIZE, \fB\-\-pagesize\fR=\fIPAGESIZE\fR |
---|
55 | Set the size of the page. Most well known page sizes |
---|
56 | are recognized, like 'A4' or 'Letter' to name a few. |
---|
57 | The default page size is A4. |
---|
58 | .TP |
---|
59 | \fB\-r\fR REASON, \fB\-\-reason\fR=\fIREASON\fR |
---|
60 | The reason why there was a refund. |
---|
61 | .TP |
---|
62 | \fB\-u\fR UNIT, \fB\-\-unit\fR=\fIUNIT\fR |
---|
63 | The name of the unit to use on the receipts. The |
---|
64 | default value is 'Credits' or its locale translation. |
---|
65 | .SS "filtering expressions:" |
---|
66 | .IP |
---|
67 | Use the filtering expressions to extract only parts of the datas. Allowed |
---|
68 | filters are of the form 'key=value'. Wildcards are not expanded as part of |
---|
69 | these filtering expressions, so you can't use them here. |
---|
70 | .IP |
---|
71 | allowed keys for now: |
---|
72 | .IP |
---|
73 | username : User's name |
---|
74 | printername : Printer's name |
---|
75 | hostname : Host's name |
---|
76 | jobid : Job's id |
---|
77 | billingcode : Job's billing code |
---|
78 | start : Job's date of printing |
---|
79 | end : Job's date of printing |
---|
80 | .IP |
---|
81 | formatting of dates with the 'start' and 'end' filtering keys: |
---|
82 | .IP |
---|
83 | YYYY : year boundaries |
---|
84 | YYYYMM : month boundaries |
---|
85 | YYYYMMDD : day boundaries |
---|
86 | YYYYMMDDhh : hour boundaries |
---|
87 | YYYYMMDDhhmm : minute boundaries |
---|
88 | YYYYMMDDhhmmss : second boundaries |
---|
89 | yesterday[+\-N] : yesterday more or less N days (e.g. : yesterday\-15) |
---|
90 | today[+\-N] : today more or less N days (e.g. : today\-15) |
---|
91 | tomorrow[+\-N] : tomorrow more or less N days (e.g. : tomorrow\-15) |
---|
92 | now[+\-N] : now more or less N days (e.g. now\-15) |
---|
93 | .IP |
---|
94 | \&'now' and 'today' are not exactly the same since 'today' represents the |
---|
95 | first or last second of the day depending on if it's used in a 'start=' or |
---|
96 | \&'end=' date expression. |
---|
97 | .IP |
---|
98 | examples: |
---|
99 | .IP |
---|
100 | pkrefund \fB\-\-output\fR \fI/tmp/receipts.pdf\fP jobid=503 |
---|
101 | This would refund all jobs which Id is 503. A confirmation would be |
---|
102 | asked for each job to refund, and a PDF file named \fI/tmp/receipts.pdf\fP |
---|
103 | would be created containing printable receipts. BEWARE of job ids |
---|
104 | rolling over if you reset CUPS' history. |
---|
105 | .IP |
---|
106 | pkrefund \fB\-\-reason\fR "Hardware problem" jobid=503 start=today\-7 |
---|
107 | This would refund all jobs which id is 503 but which would have been |
---|
108 | printed during the past week. The reason would be marked as being an |
---|
109 | hardware problem. |
---|
110 | .IP |
---|
111 | pkrefund \fB\-\-force\fR username=jerome printername=HP2100 |
---|
112 | This would refund all jobs printed by user jerome on printer HP2100. |
---|
113 | No confirmation would be asked. |
---|
114 | .IP |
---|
115 | pkrefund \fB\-\-force\fR printername=HP2100 start=200602 end=yesterday |
---|
116 | This would refund all jobs printed on printer HP2100 between February |
---|
117 | 1st 2006 and yesterday. No confirmation would be asked. |
---|
118 | .IP |
---|
119 | licensing terms: |
---|
120 | .IP |
---|
121 | (c) 2003\-2013 Jerome Alet \- alet@librelogiciel.com |
---|
122 | This program is free software: you can redistribute it and/or modify |
---|
123 | it under the terms of the GNU General Public License as published by |
---|
124 | the Free Software Foundation, either version 3 of the License, or (at |
---|
125 | your option) any later version. |
---|
126 | .IP |
---|
127 | This program is distributed in the hope that it will be useful, but |
---|
128 | WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
129 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
130 | General Public License for more details. |
---|
131 | .IP |
---|
132 | You should have received a copy of the GNU General Public License |
---|
133 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|