Klpq is a frontend to the print spooler. Its primary purpose is displaying the print queue and removing jobs from the queue. But you can even disable/ enable printing or move jobs to the top of the queue, if you have the necessary access permissions.
Klpq does not modify the printqueue by itself, but uses the underlying commands: lpq, lprm and lpc. For this reason klpq should be safe as long as lpq, lprm and lpc are safe.
This is an alpha release of klpq.
set KDEDIR and QTDIR,
run:
./configure
make
make install
This will install:
KDEDIR/bin/klpq
KDEDIR/doc/HTML/klpq/klpq.html
KDEDIR/apps/Utility/Klpq.kdelnk
Klpq expects that you have a properly configured printcap file in /etc/printcap. If klpq is not able to parse your printcap, please send a copy of your printcap to me.
klpq [ [-P printer ] file ]
Without any arguments klpq searches for the environment variable PRINTER and tries to display the contents of the corresponding queue. If PRINTER is not set, it displays the contents of the first printer in your printcap file.
With the file argument you may use klpq as a replacement for lpr. You don't hae to type 'lpr text; klpq' but may type directly 'klpq text'. Klpq executes lpr for you. The -P option specifies the spool area to use.
Currently no other options to lpr are supported.
Using klpq is straight forward: look at it yourself, it is quite selfexplanatory.
Just some words about things that are not obvious:
If the 'Auto' button is pressed down, klpq rereads the current printqueue ever 'nr' seconds, so you don't have to hit the 'Update' button every time. You may change the 'nr' of seconds by selecting 'config->Auto update' from the menu. If you set 'nr' to 0, then the 'Auto' button will be completely disabled.
If you get the message 'This is a privileged command', than you have to be root or any other privileged user to execute this command and if you try to remove a printjob of another user, this is silently ignored.
There are several key accelerators defined:
Anything else?
Christoph Neerfeld
Christoph.Neerfeld@mail.bonn.netsurf.de