1 | <!-- $Id$ --> |
---|
2 | |
---|
3 | <chapter> |
---|
4 | <title id="pykotme">Get print quotes before printing for real with <application>pykotme</application></title> |
---|
5 | <para>Last modified on $Date$</para> |
---|
6 | |
---|
7 | <para> |
---|
8 | PyKota features a print quote generator, named <application>pykotme</application>. |
---|
9 | This command line tool can be used to learn in advance how much a print job |
---|
10 | will cost to you if you really send it to a printer. |
---|
11 | You can then decide if printing your document is a good idea or not, and do it |
---|
12 | knowingly. |
---|
13 | </para> |
---|
14 | |
---|
15 | <para> |
---|
16 | To get a print quote, you have to launch <application>pykotme</application> |
---|
17 | from the command line, passing your print job's content in the PostScript |
---|
18 | format, either in the form of one or more file names on the command line, |
---|
19 | or on its standard input (i.e. in a shell pipe or redirection). |
---|
20 | </para> |
---|
21 | |
---|
22 | <para> |
---|
23 | Without any command line argument, <application>pykotme</application> |
---|
24 | automatically reads your job's data from its standard input. |
---|
25 | </para> |
---|
26 | |
---|
27 | <para> |
---|
28 | By default, <application>pykotme</application> |
---|
29 | will display a quote for your job on all printers. You can restrict |
---|
30 | this by using the <literal>-p | --printer</literal> command line |
---|
31 | option followed with either a printer's name or a wildcard |
---|
32 | which will be used to search all printers which name matches. |
---|
33 | </para> |
---|
34 | |
---|
35 | <sect1> |
---|
36 | <title>Examples</title> |
---|
37 | <para> |
---|
38 | Here are some examples of <application>pykotme</application> usage. |
---|
39 | </para> |
---|
40 | |
---|
41 | <para> |
---|
42 | The simplest form : |
---|
43 | <screen> |
---|
44 | port50-2:~$ pykotme pykota.ps |
---|
45 | Your account balance : 16.25 |
---|
46 | Job size : 22 pages |
---|
47 | Cost on printer apple : 1.35 |
---|
48 | port50-2:~$ |
---|
49 | </screen> |
---|
50 | </para> |
---|
51 | |
---|
52 | <para> |
---|
53 | More complex, with printer name wildcard and within a pipe : |
---|
54 | <screen> |
---|
55 | port50-2:~$ a2ps -o - pykota/README | pykotme --printer "a*" |
---|
56 | [pykota/README (plain): 6 pages on 3 sheets] |
---|
57 | [Total: 6 pages on 3 sheets] sent to the standard output |
---|
58 | Your account balance : 16.25 |
---|
59 | Job size : 3 pages |
---|
60 | Cost on printer apple : 0.40 |
---|
61 | port50-2:~$ |
---|
62 | </screen> |
---|
63 | </para> |
---|
64 | </sect1> |
---|
65 | |
---|
66 | <sect1> |
---|
67 | <title>Reference</title> |
---|
68 | <para> |
---|
69 | <cmdsynopsis> |
---|
70 | <command>pykotme</command> |
---|
71 | <group choice="opt"><arg>-v</arg><arg>--version</arg></group> |
---|
72 | <group choice="opt"><arg>-h</arg><arg>--help</arg></group> |
---|
73 | <group choice="opt"> |
---|
74 | <arg>-P <replaceable>printername</replaceable></arg> |
---|
75 | <arg>--printer <replaceable>printername</replaceable></arg> |
---|
76 | </group> |
---|
77 | <group choice="opt"> |
---|
78 | <arg><replaceable>filename1</replaceable></arg> |
---|
79 | <arg><replaceable>filename2</replaceable></arg> |
---|
80 | <arg><replaceable>...</replaceable></arg> |
---|
81 | <arg><replaceable>filenameN</replaceable></arg> |
---|
82 | </group> |
---|
83 | </cmdsynopsis> |
---|
84 | </para> |
---|
85 | </sect1> |
---|
86 | </chapter> |
---|
87 | |
---|
88 | <!-- |
---|
89 | |
---|
90 | $Log$ |
---|
91 | Revision 1.4 2003/07/25 13:18:44 jalet |
---|
92 | Typos |
---|
93 | |
---|
94 | Revision 1.3 2003/07/25 13:16:44 jalet |
---|
95 | Typo |
---|
96 | |
---|
97 | Revision 1.2 2003/07/25 13:10:58 jalet |
---|
98 | Improved documentation |
---|
99 | |
---|
100 | Revision 1.1 2003/07/25 10:41:30 jalet |
---|
101 | Better documentation. |
---|
102 | pykotme now displays the current user's account balance. |
---|
103 | Some test changed in ldap module. |
---|
104 | |
---|
105 | |
---|
106 | --> |
---|