1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. |
---|
2 | .TH EDPYKOTA "1" "October 2003" "C@LL - Conseil Internet & Logiciels Libres" "PyKota Print Quota for CUPS and LPRng" |
---|
3 | .SH NAME |
---|
4 | edpykota \- manual page for edpykota 1.15_unofficial |
---|
5 | .SH DESCRIPTION |
---|
6 | edpykota v1.15_unofficial (C) 2003 C@LL - Conseil Internet & Logiciels Libres |
---|
7 | A Print Quota editor for PyKota. |
---|
8 | .PP |
---|
9 | command line usage : |
---|
10 | .IP |
---|
11 | edpykota [options] user1 user2 ... userN |
---|
12 | .IP |
---|
13 | edpykota [options] group1 group2 ... groupN |
---|
14 | .PP |
---|
15 | options : |
---|
16 | .TP |
---|
17 | \fB\-v\fR | \fB\-\-version\fR |
---|
18 | Prints edpykota's version number then exits. |
---|
19 | .TP |
---|
20 | \fB\-h\fR | \fB\-\-help\fR |
---|
21 | Prints this message then exits. |
---|
22 | .TP |
---|
23 | \fB\-a\fR | \fB\-\-add\fR |
---|
24 | Adds users and/or printers if they don't |
---|
25 | exist on the Quota Storage Server. |
---|
26 | .TP |
---|
27 | \fB\-d\fR | \fB\-\-delete\fR |
---|
28 | Deletes users/groups from the quota storage. |
---|
29 | Printers are never deleted. |
---|
30 | .TP |
---|
31 | \fB\-c\fR | \fB\-\-charge\fR p[,j] |
---|
32 | Sets the price per page and per job to charge |
---|
33 | for a particular printer. Job price is optional. |
---|
34 | If both are to be set, separate them with a comma. |
---|
35 | Floating point values are allowed. |
---|
36 | .TP |
---|
37 | \fB\-i\fR | \fB\-\-ingroups\fR g1[,g2...] |
---|
38 | Puts the users into each of the groups |
---|
39 | listed, separated by commas. The groups |
---|
40 | must already exist in the Quota Storage. |
---|
41 | .TP |
---|
42 | \fB\-u\fR | \fB\-\-users\fR |
---|
43 | Edit users print quotas, this is the default. |
---|
44 | .TP |
---|
45 | \fB\-P\fR | \fB\-\-printer\fR p |
---|
46 | Edit quotas on printer p only. Actually p can |
---|
47 | use wildcards characters to select only |
---|
48 | some printers. The default value is *, meaning |
---|
49 | all printers. |
---|
50 | You can specify several names or wildcards, |
---|
51 | by separating them with commas. |
---|
52 | .TP |
---|
53 | \fB\-g\fR | \fB\-\-groups\fR |
---|
54 | Edit groups print quotas instead of users. |
---|
55 | .TP |
---|
56 | \fB\-p\fR | \fB\-\-prototype\fR u|g Uses user u or group g as a prototype to set |
---|
57 | print quotas |
---|
58 | .TP |
---|
59 | \fB\-n\fR | \fB\-\-noquota\fR |
---|
60 | Doesn't set a quota but only does accounting. |
---|
61 | .TP |
---|
62 | \fB\-r\fR | \fB\-\-reset\fR |
---|
63 | Resets the printed page counter for the user |
---|
64 | or group to zero. The life time page counter |
---|
65 | is kept unchanged. |
---|
66 | .TP |
---|
67 | \fB\-l\fR | \fB\-\-limitby\fR l |
---|
68 | Choose if the user/group is limited in printing |
---|
69 | by its account balance or by its page quota. |
---|
70 | The default value is 'quota'. Allowed values |
---|
71 | are 'quota' and 'balance'. |
---|
72 | .TP |
---|
73 | \fB\-b\fR | \fB\-\-balance\fR b |
---|
74 | Sets the user's account balance to b. |
---|
75 | Account balance may be increase or decreased |
---|
76 | if b is prefixed with + or -. |
---|
77 | WARNING : when decreasing account balance, |
---|
78 | the total paid so far by the user is decreased |
---|
79 | too. |
---|
80 | Groups don't have a real balance, but the |
---|
81 | sum of their users' account balance. |
---|
82 | .TP |
---|
83 | \fB\-S\fR | \fB\-\-softlimit\fR sl |
---|
84 | Sets the quota soft limit to sl pages. |
---|
85 | .TP |
---|
86 | \fB\-H\fR | \fB\-\-hardlimit\fR hl |
---|
87 | Sets the quota hard limit to hl pages. |
---|
88 | .IP |
---|
89 | user1 through userN and group1 through groupN can use wildcards |
---|
90 | if the \fB\-\-add\fR option is not set. |
---|
91 | .PP |
---|
92 | examples : |
---|
93 | .IP |
---|
94 | \f(CW$ edpykota -p jerome john paul george ringo\fR |
---|
95 | .IP |
---|
96 | This will set print quotas for the users john, paul, george and ringo |
---|
97 | to the same values than user jerome. User jerome must exist. |
---|
98 | .IP |
---|
99 | \f(CW$ edpykota --printer lp -S 50 -H 60 jerome\fR |
---|
100 | .IP |
---|
101 | This will set jerome's print quota on the lp printer to a soft limit |
---|
102 | of 50 pages, and a hard limit of 60 pages. If either user jerome or |
---|
103 | printer lp doesn't exist on the Quota Storage Server then nothing is done. |
---|
104 | .IP |
---|
105 | \f(CW$ edpykota --add --printer lp --ingroups coders,it -S 50 -H 60 jerome\fR |
---|
106 | .IP |
---|
107 | Same as above, but if either user jerome or printer lp doesn't exist |
---|
108 | on the Quota Storage Server they are automatically added. Also |
---|
109 | user jerome is put into the groups "coders" and "it" which must |
---|
110 | already exist in the Quota Storage. |
---|
111 | WARNING : the CUPS PPD file for this printer or the /etc/printcap |
---|
112 | .TP |
---|
113 | file (depending on your printing backend) |
---|
114 | must still be |
---|
115 | .IP |
---|
116 | modified manually, as well as pykota's configuration file |
---|
117 | for a new printer to be managed successfully. |
---|
118 | .IP |
---|
119 | \f(CW$ edpykota -g -S 500 -H 550 financial support\fR |
---|
120 | .IP |
---|
121 | This will set print quota soft limit to 500 pages and hard limit |
---|
122 | to 550 pages for groups financial and support on all printers. |
---|
123 | .IP |
---|
124 | \f(CW$ edpykota --reset jerome "jo*"\fR |
---|
125 | .IP |
---|
126 | This will reset jerome's page counter to zero on all printers, as |
---|
127 | well as every user whose name begins with 'jo'. |
---|
128 | Their life time page counter on each printer will be kept unchanged. |
---|
129 | .IP |
---|
130 | \f(CW$ edpykota --printer hpcolor --noquota jerome\fR |
---|
131 | .IP |
---|
132 | This will tell PyKota to not limit jerome when printing on the |
---|
133 | hpcolor printer. All his jobs will be allowed on this printer, but |
---|
134 | accounting of the pages he prints will still be kept. |
---|
135 | Print Quotas for jerome on other printers are unchanged. |
---|
136 | .IP |
---|
137 | \f(CW$ edpykota --limitby balance jerome\fR |
---|
138 | .IP |
---|
139 | This will tell PyKota to limit jerome by his account's balance |
---|
140 | when printing. |
---|
141 | .IP |
---|
142 | \f(CW$ edpykota --balance +10.0 jerome\fR |
---|
143 | .IP |
---|
144 | This will increase jerome's account balance by 10.0 (in your |
---|
145 | own currency). You can decrease the account balance with a |
---|
146 | dash prefix, and set it to a fixed amount with no prefix. |
---|
147 | .IP |
---|
148 | \f(CW$ edpykota --delete jerome rachel\fR |
---|
149 | .IP |
---|
150 | This will completely delete jerome and rachel from the Quota Storage |
---|
151 | database. All their quotas and jobs will be deleted too. |
---|
152 | .IP |
---|
153 | \f(CW$ edpykota --printer lp --charge 0.1\fR |
---|
154 | .IP |
---|
155 | This will set the page price for printer lp to 0.1. Job price |
---|
156 | will not be changed. |
---|
157 | .PP |
---|
158 | This program is free software; you can redistribute it and/or modify |
---|
159 | it under the terms of the GNU General Public License as published by |
---|
160 | the Free Software Foundation; either version 2 of the License, or |
---|
161 | (at your option) any later version. |
---|
162 | .PP |
---|
163 | This program is distributed in the hope that it will be useful, |
---|
164 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
165 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
166 | GNU General Public License for more details. |
---|
167 | .PP |
---|
168 | You should have received a copy of the GNU General Public License |
---|
169 | along with this program; if not, write to the Free Software |
---|
170 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
---|
171 | .PP |
---|
172 | Please e-mail bugs to: Jerome Alet - alet@librelogiciel.com |
---|
173 | .SH "SEE ALSO" |
---|
174 | The full documentation for |
---|
175 | .B edpykota |
---|
176 | is maintained as a Texinfo manual. If the |
---|
177 | .B info |
---|
178 | and |
---|
179 | .B edpykota |
---|
180 | programs are properly installed at your site, the command |
---|
181 | .IP |
---|
182 | .B info edpykota |
---|
183 | .PP |
---|
184 | should give you access to the complete manual. |
---|