1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. |
---|
2 | .TH PKREFUND "1" "November 2006" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" |
---|
3 | .SH NAME |
---|
4 | pkrefund \- manual page for pkrefund 1.25alpha16_unofficial |
---|
5 | .SH DESCRIPTION |
---|
6 | pkrefund v1.25alpha16_unofficial (c) 2003, 2004, 2005, 2006 Jerome Alet \- alet@librelogiciel.com |
---|
7 | .PP |
---|
8 | Refunds jobs. |
---|
9 | .PP |
---|
10 | command line usage : |
---|
11 | .IP |
---|
12 | pkrefund [options] [filterexpr] |
---|
13 | .PP |
---|
14 | options : |
---|
15 | .TP |
---|
16 | \fB\-v\fR | \fB\-\-version\fR |
---|
17 | Prints pkrefund's version number then exits. |
---|
18 | .TP |
---|
19 | \fB\-h\fR | \fB\-\-help\fR |
---|
20 | Prints this message then exits. |
---|
21 | .TP |
---|
22 | \fB\-f\fR | \fB\-\-force\fR |
---|
23 | Doesn't ask for confirmation before refunding jobs. |
---|
24 | .TP |
---|
25 | \fB\-r\fR | \fB\-\-reason\fR txt |
---|
26 | Sets textual information to explain the refunding. |
---|
27 | .IP |
---|
28 | Use the filter expressions to extract only parts of the |
---|
29 | datas. Allowed filters are of the form : |
---|
30 | .IP |
---|
31 | key=value |
---|
32 | .IP |
---|
33 | Allowed keys for now are : |
---|
34 | .TP |
---|
35 | username |
---|
36 | User's name |
---|
37 | .TP |
---|
38 | printername |
---|
39 | Printer's name |
---|
40 | .TP |
---|
41 | hostname |
---|
42 | Client's hostname |
---|
43 | .TP |
---|
44 | jobid |
---|
45 | Job's Id |
---|
46 | .TP |
---|
47 | billingcode |
---|
48 | Job's billing code |
---|
49 | .TP |
---|
50 | start |
---|
51 | Job's date of printing |
---|
52 | .TP |
---|
53 | end |
---|
54 | Job's date of printing |
---|
55 | .IP |
---|
56 | Dates formatting with 'start' and 'end' filter keys : |
---|
57 | .IP |
---|
58 | YYYY : year boundaries |
---|
59 | YYYYMM : month boundaries |
---|
60 | YYYYMMDD : day boundaries |
---|
61 | YYYYMMDDhh : hour boundaries |
---|
62 | YYYYMMDDhhmm : minute boundaries |
---|
63 | YYYYMMDDhhmmss : second boundaries |
---|
64 | yesterday[+\-NbDays] : yesterday more or less N days (e.g. : yesterday\-15) |
---|
65 | today[+\-NbDays] : today more or less N days (e.g. : today\-15) |
---|
66 | tomorrow[+\-NbDays] : tomorrow more or less N days (e.g. : tomorrow\-15) |
---|
67 | now[+\-NbDays] : now more or less N days (e.g. now\-15) |
---|
68 | .IP |
---|
69 | \&'now' and 'today' are not exactly the same since today represents the first |
---|
70 | or last second of the day depending on if it's used in a start= or end= |
---|
71 | date expression. The utility to be able to specify dates in the future is |
---|
72 | a question which remains to be answered :\-) |
---|
73 | .IP |
---|
74 | Contrary to other PyKota management tools, wildcard characters are not |
---|
75 | expanded, so you can't use them. |
---|
76 | .PP |
---|
77 | Examples : |
---|
78 | .IP |
---|
79 | \f(CW$ pkrefund jobid=503\fR |
---|
80 | .IP |
---|
81 | This will refund all jobs which Id is 503. BEWARE : installing CUPS |
---|
82 | afresh will reset the first job id at 1. So you probably want to use |
---|
83 | a more precise filter as explained below |
---|
84 | .IP |
---|
85 | \f(CW$ pkrefund --reason "Hardware problem" jobid=503 start=today-7\fR |
---|
86 | .IP |
---|
87 | Refunds all jobs which id is 503 but which were printed during the |
---|
88 | past week. The reason will be marked as being an hardware problem. |
---|
89 | .IP |
---|
90 | \f(CW$ pkrefund --force username=jerome printername=HP2100\fR |
---|
91 | .IP |
---|
92 | Refunds all jobs printed by user jerome on printer HP2100. No |
---|
93 | confirmation will be asked. |
---|
94 | .IP |
---|
95 | \f(CW$ pkrefund --force printername=HP2100 start=200602 end=yesterday\fR |
---|
96 | .IP |
---|
97 | Refunds all jobs printed on printer HP2100 between February 1st 2006 |
---|
98 | and yesterday. No confirmation will be asked. |
---|
99 | .PP |
---|
100 | This program is free software; you can redistribute it and/or modify |
---|
101 | it under the terms of the GNU General Public License as published by |
---|
102 | the Free Software Foundation; either version 2 of the License, or |
---|
103 | (at your option) any later version. |
---|
104 | .PP |
---|
105 | This program is distributed in the hope that it will be useful, |
---|
106 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
107 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
108 | GNU General Public License for more details. |
---|
109 | .PP |
---|
110 | You should have received a copy of the GNU General Public License |
---|
111 | along with this program; if not, write to the Free Software |
---|
112 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110\-1301, USA. |
---|
113 | .PP |
---|
114 | Please report bugs to : Jerome Alet \- alet@librelogiciel.com |
---|