.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.29. .TH EDPYKOTA "1" "June 2003" "C@LL - Conseil Internet & Logiciels Libres" "PyKota Print Quota for CUPS and LPRng" .SH NAME edpykota \- manual page for edpykota 1.09_unofficial .SH DESCRIPTION edpykota v1.09_unofficial (C) 2003 C@LL - Conseil Internet & Logiciels Libres A Print Quota editor for PyKota. .PP command line usage : .IP edpykota [options] user1 user2 ... userN .IP edpykota [options] group1 group2 ... groupN .PP options : .TP \fB\-v\fR | \fB\-\-version\fR Prints edpykota's version number then exits. .TP \fB\-h\fR | \fB\-\-help\fR Prints this message then exits. .TP \fB\-a\fR | \fB\-\-add\fR Adds users and/or printers if they don't exist on the Quota Storage Server. .TP \fB\-d\fR | \fB\-\-delete\fR Deletes users/groups from the quota storage. Printers are never deleted. .TP \fB\-c\fR | \fB\-\-charge\fR p[,j] Sets the price per page and per job to charge for a particular printer. Job price is optional. If both are to be set, separate them with a comma. Floating point values are allowed. .TP \fB\-i\fR | \fB\-\-ingroups\fR g1[,g2...] Puts the users into each of the groups listed, separated by commas. The groups must already exist in the Quota Storage. .TP \fB\-u\fR | \fB\-\-users\fR Edit users print quotas, this is the default. .TP \fB\-P\fR | \fB\-\-printer\fR p Edit quotas on printer p only. Actually p can use wildcards characters to select only some printers. The default value is *, meaning all printers. .TP \fB\-g\fR | \fB\-\-groups\fR Edit groups print quotas instead of users. .TP \fB\-p\fR | \fB\-\-prototype\fR u|g Uses user u or group g as a prototype to set print quotas .TP \fB\-n\fR | \fB\-\-noquota\fR Doesn't set a quota but only does accounting. .TP \fB\-r\fR | \fB\-\-reset\fR Resets the printed page counter for the user or group to zero. The life time page counter is kept unchanged. .TP \fB\-l\fR | \fB\-\-limitby\fR l Choose if the user/group is limited in printing by its account balance or by its page quota. The default value is 'quota'. Allowed values are 'quota' and 'balance'. .TP \fB\-b\fR | \fB\-\-balance\fR b Sets the user's account balance to b. Account balance may be increase or decreased if b is prefixed with + or -. WARNING : when decreasing account balance, the total paid so far by the user is decreased too. Groups don't have a real balance, but the sum of their users' account balance. .TP \fB\-S\fR | \fB\-\-softlimit\fR sl Sets the quota soft limit to sl pages. .TP \fB\-H\fR | \fB\-\-hardlimit\fR hl Sets the quota hard limit to hl pages. .IP user1 through userN and group1 through groupN can use wildcards if the \fB\-\-add\fR option is not set. .PP examples : .IP \f(CW$ edpykota -p jerome john paul george ringo\fR .IP This will set print quotas for the users john, paul, george and ringo to the same values than user jerome. User jerome must exist. .IP \f(CW$ edpykota --printer lp -S 50 -H 60 jerome\fR .IP This will set jerome's print quota on the lp printer to a soft limit of 50 pages, and a hard limit of 60 pages. If either user jerome or printer lp doesn't exist on the Quota Storage Server then nothing is done. .IP \f(CW$ edpykota --add --printer lp --ingroups coders,it -S 50 -H 60 jerome\fR .IP Same as above, but if either user jerome or printer lp doesn't exist on the Quota Storage Server they are automatically added. Also user jerome is put into the groups "coders" and "it" which must already exist in the Quota Storage. WARNING : the CUPS PPD file for this printer or the /etc/printcap .TP file (depending on your printing backend) must still be .IP modified manually, as well as pykota's configuration file for a new printer to be managed successfully. .IP \f(CW$ edpykota -g -S 500 -H 550 financial support\fR .IP This will set print quota soft limit to 500 pages and hard limit to 550 pages for groups financial and support on all printers. .IP \f(CW$ edpykota --reset jerome "jo*"\fR .IP This will reset jerome's page counter to zero on all printers, as well as every user whose name begins with 'jo'. Their life time page counter on each printer will be kept unchanged. .IP \f(CW$ edpykota --printer hpcolor --noquota jerome\fR .IP This will tell PyKota to not limit jerome when printing on the hpcolor printer. All his jobs will be allowed on this printer, but accounting of the pages he prints will still be kept. Print Quotas for jerome on other printers are unchanged. .IP \f(CW$ edpykota --limitby balance jerome\fR .IP This will tell PyKota to limit jerome by his account's balance when printing. .IP \f(CW$ edpykota --balance +10.0 jerome\fR .IP This will increase jerome's account balance by 10.0 (in your own currency). You can decrease the account balance with a dash prefix, and set it to a fixed amount with no prefix. .IP \f(CW$ edpykota --delete jerome rachel\fR .IP This will completely delete jerome and rachel from the Quota Storage database. All their quotas and jobs will be deleted too. .IP \f(CW$ edpykota --printer lp --charge 0.1\fR .IP This will set the page price for printer lp to 0.1. Job price will not be changed. .PP This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. .PP This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. .PP You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. .PP Please e-mail bugs to: Jerome Alet - alet@librelogiciel.com