1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35. |
---|
2 | .TH EDPYKOTA "1" "mai 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" |
---|
3 | .SH NOM |
---|
4 | edpykota \- page de manuel de edpykota 1.23alpha4_unofficial |
---|
5 | .SH DESCRIPTION |
---|
6 | edpykota v1.23alpha4_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com |
---|
7 | .PP |
---|
8 | A Print Quota editor for PyKota. |
---|
9 | .PP |
---|
10 | command line usage : |
---|
11 | .IP |
---|
12 | edpykota [options] user1 user2 ... userN |
---|
13 | .IP |
---|
14 | edpykota [options] group1 group2 ... groupN |
---|
15 | .PP |
---|
16 | options : |
---|
17 | .TP |
---|
18 | \fB\-v\fR | \fB\-\-version\fR |
---|
19 | Prints edpykota's version number then exits. |
---|
20 | .TP |
---|
21 | \fB\-h\fR | \fB\-\-help\fR |
---|
22 | Prints this message then exits. |
---|
23 | .TP |
---|
24 | \fB\-a\fR | \fB\-\-add\fR |
---|
25 | Adds users and/or printers if they don't |
---|
26 | exist on the Quota Storage Server. |
---|
27 | .TP |
---|
28 | \fB\-d\fR | \fB\-\-delete\fR |
---|
29 | Deletes users/groups from the quota storage. |
---|
30 | Printers are never deleted. |
---|
31 | .TP |
---|
32 | \fB\-c\fR | \fB\-\-charge\fR p[,j] |
---|
33 | Sets the price per page and per job to charge |
---|
34 | for a particular printer. Job price is optional. |
---|
35 | If both are to be set, separate them with a comma. |
---|
36 | Floating point values are allowed. |
---|
37 | .TP |
---|
38 | \fB\-o\fR | \fB\-\-overcharge\fR f |
---|
39 | Sets the overcharging factor applied to the user |
---|
40 | when computing the cost of a print job. Positive or |
---|
41 | negative floating point values are allowed, |
---|
42 | this allows you to do some really creative |
---|
43 | things like giving money to an user whenever |
---|
44 | he prints. The number of pages in a print job |
---|
45 | is not modified by this coefficient, only the |
---|
46 | cost of the job for a particular user. |
---|
47 | Only users have a coefficient. |
---|
48 | .TP |
---|
49 | \fB\-i\fR | \fB\-\-ingroups\fR g1[,g2...] |
---|
50 | Puts the users into each of the groups |
---|
51 | listed, separated by commas. The groups |
---|
52 | must already exist in the Quota Storage. |
---|
53 | .TP |
---|
54 | \fB\-u\fR | \fB\-\-users\fR |
---|
55 | Edit users print quotas, this is the default. |
---|
56 | .TP |
---|
57 | \fB\-P\fR | \fB\-\-printer\fR p |
---|
58 | Edit quotas on printer p only. Actually p can |
---|
59 | use wildcards characters to select only |
---|
60 | some printers. The default value is *, meaning |
---|
61 | all printers. |
---|
62 | You can specify several names or wildcards, |
---|
63 | by separating them with commas. |
---|
64 | .TP |
---|
65 | \fB\-G\fR | \fB\-\-pgroups\fR pg1[,pg2...] Adds the printer(s) to the printer groups |
---|
66 | pg1, pg2, etc... which must already exist. |
---|
67 | A printer group is just like a normal printer, |
---|
68 | only that it is usually unknown from the printing |
---|
69 | system. Create printer groups exactly the same |
---|
70 | way that you create printers, then add other |
---|
71 | printers to them with this option. |
---|
72 | Accounting is done on a printer and on all |
---|
73 | the printer groups it belongs to, quota checking |
---|
74 | is done on a printer and on all the printer groups |
---|
75 | it belongs to. |
---|
76 | .TP |
---|
77 | \fB\-g\fR | \fB\-\-groups\fR |
---|
78 | Edit users groups print quotas instead of users. |
---|
79 | .TP |
---|
80 | \fB\-p\fR | \fB\-\-prototype\fR u|g Uses user u or group g as a prototype to set |
---|
81 | print quotas |
---|
82 | .TP |
---|
83 | \fB\-n\fR | \fB\-\-noquota\fR |
---|
84 | Doesn't set a quota but only does accounting. |
---|
85 | .TP |
---|
86 | \fB\-r\fR | \fB\-\-reset\fR |
---|
87 | Resets the actual page counter for the user |
---|
88 | or group to zero on the specified printers. |
---|
89 | The life time page counter is kept unchanged. |
---|
90 | .TP |
---|
91 | \fB\-R\fR | \fB\-\-hardreset\fR |
---|
92 | Resets the actual and life time page counters |
---|
93 | for the user or group to zero on the specified |
---|
94 | printers. This is a shortcut for '\-\-used 0'. |
---|
95 | .TP |
---|
96 | \fB\-l\fR | \fB\-\-limitby\fR l |
---|
97 | Choose if the user/group is limited in printing |
---|
98 | by its account balance or by its page quota. |
---|
99 | The default value is 'quota'. Allowed values |
---|
100 | are 'quota' 'balance' 'quota\-then\-balance' and |
---|
101 | \&'balance\-then\-quota'. |
---|
102 | WARNING : quota\-then\-balance and balance\-then\-quota |
---|
103 | are not yet implemented. |
---|
104 | .TP |
---|
105 | \fB\-b\fR | \fB\-\-balance\fR b |
---|
106 | Sets the user's account balance to b. |
---|
107 | Account balance may be increase or decreased |
---|
108 | if b is prefixed with + or \-. |
---|
109 | WARNING : when decreasing account balance, |
---|
110 | the total paid so far by the user is decreased |
---|
111 | too. |
---|
112 | Groups don't have a real balance, but the |
---|
113 | sum of their users' account balance. |
---|
114 | .TP |
---|
115 | \fB\-S\fR | \fB\-\-softlimit\fR sl |
---|
116 | Sets the quota soft limit to sl pages. |
---|
117 | .TP |
---|
118 | \fB\-H\fR | \fB\-\-hardlimit\fR hl |
---|
119 | Sets the quota hard limit to hl pages. |
---|
120 | .TP |
---|
121 | \fB\-U\fR | \fB\-\-used\fR usage |
---|
122 | Sets the pagecounters for the user to usage pages; |
---|
123 | useful for migrating users from a different system |
---|
124 | where they have already used some pages. Actual |
---|
125 | and Life Time page counters may be increased or decreased |
---|
126 | if usage is prefixed with + or \-. |
---|
127 | WARNING : BOTH page counters are modified in all cases, |
---|
128 | so be careful. |
---|
129 | NB : if 'usage' equals '0', then the action taken is |
---|
130 | the same as if \fB\-\-hardreset\fR was used. |
---|
131 | .IP |
---|
132 | user1 through userN and group1 through groupN can use wildcards |
---|
133 | if the \fB\-\-add\fR option is not set. |
---|
134 | .PP |
---|
135 | examples : |
---|
136 | .IP |
---|
137 | \f(CW$ edpykota --add -p jerome john paul george ringo/ringo@example.com\fR |
---|
138 | .IP |
---|
139 | This will add users john, paul, george and ringo to the quota |
---|
140 | database, and set their print quotas to the same values than user |
---|
141 | jerome. User jerome must already exist. |
---|
142 | User ringo's email address will also be set to 'ringo@example.com' |
---|
143 | .IP |
---|
144 | \f(CW$ edpykota --printer lp -S 50 -H 60 jerome\fR |
---|
145 | .IP |
---|
146 | This will set jerome's print quota on the lp printer to a soft limit |
---|
147 | of 50 pages, and a hard limit of 60 pages. If either user jerome or |
---|
148 | printer lp doesn't exist on the Quota Storage Server then nothing is done. |
---|
149 | .IP |
---|
150 | \f(CW$ edpykota --add --printer lp --ingroups coders,it -S 50 -H 60 jerome\fR |
---|
151 | .IP |
---|
152 | Same as above, but if either user jerome or printer lp doesn't exist |
---|
153 | on the Quota Storage Server they are automatically added. Also |
---|
154 | user jerome is put into the groups "coders" and "it" which must |
---|
155 | already exist in the Quota Storage. |
---|
156 | .IP |
---|
157 | \f(CW$ edpykota -g -S 500 -H 550 financial support\fR |
---|
158 | .IP |
---|
159 | This will set print quota soft limit to 500 pages and hard limit |
---|
160 | to 550 pages for groups financial and support on all printers. |
---|
161 | .IP |
---|
162 | \f(CW$ edpykota --reset jerome "jo*"\fR |
---|
163 | .IP |
---|
164 | This will reset jerome's page counter to zero on all printers, as |
---|
165 | well as every user whose name begins with 'jo'. |
---|
166 | Their life time page counter on each printer will be kept unchanged. |
---|
167 | You can also reset the life time page counters by using the |
---|
168 | \fB\-\-hardreset\fR | \fB\-R\fR command line option. |
---|
169 | .IP |
---|
170 | \f(CW$ edpykota --printer hpcolor --noquota jerome\fR |
---|
171 | .IP |
---|
172 | This will tell PyKota to not limit jerome when printing on the |
---|
173 | hpcolor printer. All his jobs will be allowed on this printer, but |
---|
174 | accounting of the pages he prints will still be kept. |
---|
175 | Print Quotas for jerome on other printers are unchanged. |
---|
176 | .IP |
---|
177 | \f(CW$ edpykota --limitby balance jerome\fR |
---|
178 | .IP |
---|
179 | This will tell PyKota to limit jerome by his account's balance |
---|
180 | when printing. |
---|
181 | .IP |
---|
182 | \f(CW$ edpykota --balance +10.0 jerome\fR |
---|
183 | .IP |
---|
184 | This will increase jerome's account balance by 10.0 (in your |
---|
185 | own currency). You can decrease the account balance with a |
---|
186 | dash prefix, and set it to a fixed amount with no prefix. |
---|
187 | .IP |
---|
188 | \f(CW$ edpykota --delete jerome rachel\fR |
---|
189 | .IP |
---|
190 | This will completely delete jerome and rachel from the Quota Storage |
---|
191 | database. All their quotas and jobs will be deleted too. |
---|
192 | .IP |
---|
193 | \f(CW$ edpykota --printer lp --charge 0.1\fR |
---|
194 | .IP |
---|
195 | This will set the page price for printer lp to 0.1. Job price |
---|
196 | will not be changed. |
---|
197 | .IP |
---|
198 | \f(CW$ edpykota --printer hplj1,hplj2 --pgroups Laser,HP\fR |
---|
199 | .IP |
---|
200 | This will put printers hplj1 and hplj2 in printers groups Laser and HP. |
---|
201 | When printing either on hplj1 or hplj2, print quota will also be |
---|
202 | checked and accounted for on virtual printers Laser and HP. |
---|
203 | .IP |
---|
204 | \f(CW$ edpykota --overcharge 2.5 poorstudent\fR |
---|
205 | .IP |
---|
206 | This will overcharge the poorstudent user by a factor of 2.5. |
---|
207 | .IP |
---|
208 | \f(CW$ edpykota --overcharge -1 jerome\fR |
---|
209 | .IP |
---|
210 | User jerome will actually earn money whenever he prints. |
---|
211 | .IP |
---|
212 | \f(CW$ edpykota --overcharge 0 boss\fR |
---|
213 | .IP |
---|
214 | User boss can print at will, it won't cost him anything because the |
---|
215 | cost of each print job will be multiplied by zero before charging |
---|
216 | his account. |
---|
217 | .PP |
---|
218 | This program is free software; you can redistribute it and/or modify |
---|
219 | it under the terms of the GNU General Public License as published by |
---|
220 | the Free Software Foundation; either version 2 of the License, or |
---|
221 | (at your option) any later version. |
---|
222 | .PP |
---|
223 | This program is distributed in the hope that it will be useful, |
---|
224 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
225 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
226 | GNU General Public License for more details. |
---|
227 | .PP |
---|
228 | You should have received a copy of the GNU General Public License |
---|
229 | along with this program; if not, write to the Free Software |
---|
230 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111\-1307, USA. |
---|
231 | .PP |
---|
232 | Please e\-mail bugs to: Jerome Alet \- alet@librelogiciel.com |
---|