klpq(1) - Linux man page
Name
klpq - Krause's lpq clone
Synopsis
klpq [<options>] [<job(s)>]
Description
shows information about the specified print jobs.
Options
-S server
- connects to the specified print server host. The server can be specified either by hostname or IP address. If this option is not used and
there is no host name given using the -P option the program tries to find a default print host in the following places:
- the " PRINTHOST " environment variable,
- the "/yalc/print-host" user preference
- the "/print-host" registry entry in HKCU/Software/DKrause/Yalc
- the "/yalc/print-host" system preference
- the "/print-host" registry entry in HKLM/Software/DKrause/Yalc
- Alternative option: -H server
Long option: --server=server
- the " PRINTHOST " environment variable,
- -P printer
- chooses a print queue. The print queue can be specified as alias, or using queue@host or host%port.
If the -P option is not used the program searches for a printer name in the following places:
- the " NGPRINTER ", " NPRINTER ", " LPDEST " and " PRINTER " environment variables,
- the "/yalc/default-printer" user preference,
- the "/default-printer" registry entry in HKCU/Software/DKrause/Yanolc,
- the "/yalc/default-printer" system preference,
- the "/default-printer" registry entry in HKLM/Software/DKrause/Yanolc.
- If the queue name doest not contain a host information, the print server host information is retrieved from the -S option.
Long option: --printer=printer
- the " NGPRINTER ", " NPRINTER ", " LPDEST " and " PRINTER " environment variables,
- -a
shows information about all known print queues on the server.
- Long option: --all
- -s
generates a short status message only.
- Long option: --status
- -l
uses long output format.
- Long option: --long-output
- -L
uses very long output format.
- Long option: --very-long-output
- -f
removes filter status lines started by ''Filter_status:'' or ''Status:'' from output.
- Long option: --remove-filter-status
- -d
removes ''done'' jobs from output.
- -t seconds
- Long option: --all
- runs periodically.
Long option: --repeat=seconds
Return Value
The program returns exit status code 0 on success, any other value indicates an error.
Files
yanolc.conf
- see yanolc(1).
See Also
http://dktools.sourceforge.net/yanolc.html
Author
Dirk Krause
Copyright And License
Copyright © 2001-2008, Dirk Krause All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Dirk Krause nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .