File: gtklp.1

package info (click to toggle)
gtklp 1.3.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,004 kB
  • sloc: ansic: 11,652; sh: 5,788; makefile: 36; sed: 16
file content (261 lines) | stat: -rw-r--r-- 6,292 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
.\" This code is licensed under the GNU GENERAL PUBLIC LICENSE,
.\" see also http://www.gnu.org.
.\" 
.TH "gtklp" "1" "" "Tobias Mueller" "Printing"
.SH "NAME"
gtklp \- print files via CUPS
.SH "SYNOPSIS"
\fBgtklp\fR [\-P|\-d \fIprinter\fR] [\-c \fIconfigdir\fR] [\-S|\-h \fIserver\fR] [\-p \fIport\fR] [\-l] [\-D] [\-V] [\-b] [\-i] [\-F] [\-H] [\-C] [\-U \fIuser\fR] [\-#|\-n \fIn\fR] [\-E] [\-q \fIpriority\fR] [\-t|\-J \fIjobname\fR] [\-o \fIoption=value\fR ... ][\fIfile(s)\fR]

\fBlp\fR [\-d \fIprinter\fR] [\-S|\-h \fIserver\fR] [\-p \fIport\fR] [\-D] [\-V] [\-b] [\-U \fIuser\fR] [\-#|\-n \fIn\fR] [\-E] [\-q \fIpriority\fR] [\-t|\-J \fIjobname\fR] [\-P \fIpage\-list\fR [\-H handling] [\-X] [\-o \fIoption=value\fR ... ][\fIfile(s)\fR]

\fBlpr\fR [\-P|\-d \fIprinter\fR] [\-S|\-h \fIserver\fR] [\-p \fIport\fR] [\-D] [\-V] [\-b] [\-U \fIuser\fR] [\-#|\-n \fIn\fR] [\-E] [\-q \fIpriority\fR] [\-t|\-J|\-C|\-T \fIjobname\fR] [\-X] [\-o \fIoption=value\fR ... ][\fIfile(s)\fR]
.SH "DESCRIPTION"
\fBGtkLP\fR is an graphical frontend for \fICUPS\fR, the Common UNIX Printing System.
.br 
It is used to have an easy (and graphical) access to all of the many options
of cups\-managed printers.
.SH "OPTIONS"
The following options are recognized by \fBgtklp\fR:
.TP 5
\-P \fIprinter\fR
.br 
Use \fIprinter\fR as default destination.
.TP 5
\-d \fIprinter\fR
.br 
This option is equivalent to "\-P".
.TP 5
\-c \fIconfigdir\fR
.br 
Use \fIconfigdir\fR to set an alternative path to the configfiles for \fBGtkLP\fR.
.br 
.TP 5
\-S \fIserver\fR
.br 
The name of the CUPS\-Server.
.TP 5
\-h \fIserver\fR
.br 
The same as \-S.
.TP 5
\-p \fIport\fR
.br 
The port of CUPS\-Server, 631 per default.
.TP 5
\-l
.br 
Only list the chosen options as a list of commandline\-parameters for lpr.
.br 
Nice for scripting purposes...
.TP 5
\-D
.br 
Debug.
.TP 5
\-V
.br 
Displays the version of \fBGtkLP\fR.
.TP 5
\-b
.br 
Use builtin defaults instead of saved options
.TP 5
\-i
.br 
Ignore data on stdin.
.br 
Sometimes useful, e.g. for printing from some versions of the Acrobat Reader.
.TP 5
\-F
.br 
Hide the File\-Tab if file is given at the command\-line.
.TP 5
\-U \fIuser\fR
.br 
The name of the cups\-User to use.
.TP 5
\-# \fIn\fR
.br 
Make \fIn\fR copies per default.
.TP 5
\-n \fIn\fR
.br 
The same as \-#.
.TP 5
\-H
.br 
Help
.TP 5
\-C
.br 
Force console\-mode
.TP 5
\-o \fIoption=value\fR
.br 
Specify extra options, same syntax as lpr
.TP 5
\-E
.br 
Forces encryption when connecting to the server.
.TP 5
\-q \fIpriority\fR
.br 
Specify the priority of the print job, from 1 (lowest) to 100 (highest)
.TP 5
\-t \fIjobname\fR
.br 
Specify the jobname
.TP 5
\-J \fIjobname\fR
.br 
The same as \-t.
.TP 0
.br 
.br 
If called as lp, the following options differ from GtkLP`s options:
.TP 5
\-X
Force X\-Mode, even if GTKLP_FORCEX is not set to 1
.BR 
.TP 5
\-P \fIpage\-list\fR
.br 
Specifies which pages to print in the  document.  The
list  can  contain a list of numbers and ranges (#\-#)
separated by commas (e.g. 1,3\-5,16).
.br 
.TP 5
\-H \fIhandling\fR
Specifies  when the job should be printed. A value of
\fIimmediate\fR will print the file immediately, a value of
\fIhold\fR will hold the job indefinitely, and a time value
(HH:MM) will hold the job until the  specified  time.
(does this option work ?)
.TP 0
.br 
.br 
If called as lpr, the following options differ from GtkLP`s options:
.TP 5
\-X
Force X\-Mode, even if GTKLP_FORCEX is not set to 1
.BR 
.TP 5
\-C \fIjobname\fR
Specify the jobname
.BR 
.TP 5
\-T \fIjobname\fR
The same as \-C.
.BR 
.TP 5
\-p
Specifies that the print  file  should  be  formatted
with  a  shaded header with the date, time, job name,
and  page  number.  This  option  is  equivalent   to
"\-oprettyprint" and is only useful when printing text
files.
.BR 
.TP 5
\-l
Specifies that the print file  is  already  formatted
for  the  destination and should be sent without 
filtering. This option is equivalent to "\-oraw".
.TP 0
.BR 
Some other options from systemv`s lp and berkeley`s lpr are ignored
without error message
.SH "PATHS"
\fBGtkLP\fR looks for config\-files under
.br 
\fI<configdir>\fR
.br 
then under
.br 
\fI$HOME/.gtklp/\fR
.br 
and at last under
.br 
\fI/etc/gtklp/\fR.
.br 

To hide Printers from users, use the following pathes:
.br 
\fI/etc/gtklp/accept/\fR
.br 
\fI/etc/gtklp/deny/\fR
.br 
\fI$HOME/.gtklp/\fR
.br 

Just put an empty file with the name of the printer the user
should see by default to \fIaccept\fR,
put an empty file with the name of the printer the user
should never see to \fIdeny\fR.
If only \fIaccept\fR exists, all but the accepted printers are allowed. 
If only \fIdeny\fR exists, all but the denied printers are accepted. 
.br 
All users can \fIdeny\fR accepted printers, but they can't unhide denied ones.
.SH "SPECIAL"
In GtkLP you can define a browser to open the help URL, the CUPS\-Homepage and so on.
Just use the your favorite HTML browser. The first $1 in command\-line will be substituted
by the URL.

If you can't connect to an X\-Server, GtkLP acts as console\-lpr.

If called as lpr, or lp, GtkLP acts on console and has some other command\-line parameters, see above.
.SH "VARIABLES"
You can set the following environment variables to influence the behaviour of GtkLP:
.TP 5
CUPS_SERVER
.br 
The default CUPS\-server to connect to
.TP 5
IPP_PORT
.br 
The default Port of the CUPS\-server to connect to
.TP 5
PRINTER
.br 
The default printer to use
.TP 5
GTKLP_FORCEX
.br 
Set to 1 to force X\-Mode for lpr and lp
.SH "ERROR"
GtkLP produces the following Error\-Codes:
.TP 5
0
normal program termination
.br 
.TP 5
1
small error, wrong parameters, etc.
.br 
.TP 5
2
Server Problems, server not found, no default printer found, etc.
.br 
.TP 5
3
BAD error. Fields declared too short, too many printers, etc.
.SH "SEE ALSO"
gtklpq(1), lpr(1), CUPS Software Users Manual
.br 
http://localhost:631/documentation.html
.SH "COPYRIGHT"
This program was written by T. Mueller, 2000, 2001, 2002.
.br 
It is licensed under the Terms of the GNU GENERAL PUBLIC LICENSE, 
.br 
see also http://www.gnu.org.

.SH "CONTACT"
The latest version of \fBGtkLP\fR is always available under
.br 
http://gtklp.sourceforge.net/
.br 
.br 
Feel also free to contact me.
.br 
Please mail also, if you like the software !!! ;\-)