<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.ciscolinux.co.uk/index.php?action=history&amp;feed=atom&amp;title=Linux_printing%2FQueues</id>
	<title>Linux printing/Queues - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ciscolinux.co.uk/index.php?action=history&amp;feed=atom&amp;title=Linux_printing%2FQueues"/>
	<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;action=history"/>
	<updated>2026-04-05T08:07:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;diff=6953&amp;oldid=prev</id>
		<title>Pio2pio: Pio2pio moved page Linux Printing/Queues to Linux printing/Queues without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;diff=6953&amp;oldid=prev"/>
		<updated>2022-12-29T13:01:02Z</updated>

		<summary type="html">&lt;p&gt;Pio2pio moved page &lt;a href=&quot;/index.php?title=Linux_Printing/Queues&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Linux Printing/Queues (page does not exist)&quot;&gt;Linux Printing/Queues&lt;/a&gt; to &lt;a href=&quot;/index.php/Linux_printing/Queues&quot; title=&quot;Linux printing/Queues&quot;&gt;Linux printing/Queues&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:01, 29 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pio2pio</name></author>
	</entry>
	<entry>
		<id>http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;diff=6951&amp;oldid=prev</id>
		<title>Pio2pio: Pio2pio moved page Linux Print Queues to Linux Printing/Queues without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;diff=6951&amp;oldid=prev"/>
		<updated>2022-12-29T12:58:53Z</updated>

		<summary type="html">&lt;p&gt;Pio2pio moved page &lt;a href=&quot;/index.php?title=Linux_Print_Queues&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Linux Print Queues (page does not exist)&quot;&gt;Linux Print Queues&lt;/a&gt; to &lt;a href=&quot;/index.php?title=Linux_Printing/Queues&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Linux Printing/Queues (page does not exist)&quot;&gt;Linux Printing/Queues&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:58, 29 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pio2pio</name></author>
	</entry>
	<entry>
		<id>http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;diff=2057&amp;oldid=prev</id>
		<title>Pio2pio: /* The RedHat printtool (needs reworking) */</title>
		<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;diff=2057&amp;oldid=prev"/>
		<updated>2016-04-29T08:05:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The RedHat printtool (needs reworking)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:05, 29 April 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l65&quot;&gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Next Previous Contents&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Next Previous Contents&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= lpadmin tools =&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This is mostly found on older SYS-V or UNIX systems&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Create a printer (printer queue) with the destination printer IP&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; lpadmin -p printername -v socket://172.31.0.5 -E&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Verify to list all printers on a server&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; lpstat -s&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pio2pio</name></author>
	</entry>
	<entry>
		<id>http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;diff=1957&amp;oldid=prev</id>
		<title>Pio2pio: Created page with &quot;= Print Queues commands = :LPD - linux print demon runs Linux Print system :LPR - linux print command, you need to be root to use it, sends prints to symbolic_link /dev/lp tha...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=Linux_printing/Queues&amp;diff=1957&amp;oldid=prev"/>
		<updated>2016-03-30T18:57:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Print Queues commands = :LPD - linux print demon runs Linux Print system :LPR - linux print command, you need to be root to use it, sends prints to symbolic_link /dev/lp tha...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Print Queues commands =&lt;br /&gt;
:LPD - linux print demon runs Linux Print system&lt;br /&gt;
:LPR - linux print command, you need to be root to use it, sends prints to symbolic_link /dev/lp that links to physical_printer&lt;br /&gt;
:LPRM - cancel print jobs&lt;br /&gt;
:LPC - controls the lpd program&lt;br /&gt;
&lt;br /&gt;
Print directly to printer (root)&lt;br /&gt;
 cat thesis.txt &amp;gt; /dev/lp &lt;br /&gt;
For the purpose of security, only the root user and users in the same group as the print daemon are able to write directly to the printer. This is why commands such as lpr, lprm, and lpq have to be used to access the printer.&lt;br /&gt;
&lt;br /&gt;
;LPR - Print (users)&lt;br /&gt;
When lpr is executed, it first copies the specified file to a certain directory (the spool directory) where the file remains until lpd prints it. Once lpd is told that there is a file to print, it will spawn a copy of itself (what we programmers call forking). This copy will print our file while the original copy waits for more requests. This allows for multiple jobs to be queued at once.&lt;br /&gt;
&lt;br /&gt;
 $ lpr [ options ] [ filename ... ]   #if file is not specified STIN will be sent to print_spooler&lt;br /&gt;
 $ cat thesis.txt | lpr&lt;br /&gt;
 $ pr -l60 thesis.txt | lpr      #pr prepares a file to be printed&lt;br /&gt;
&lt;br /&gt;
The lpr command-line arguments:&lt;br /&gt;
 Pprinter -specifies the printer to use&lt;br /&gt;
 h -suppresses printing of the burst page&lt;br /&gt;
 s -creates a symbolic link instead of copying the file to the spool directory (useful for large files)&lt;br /&gt;
 #num -specifies the number of copies to print&lt;br /&gt;
&lt;br /&gt;
The example below creates a symbolic link to the file thesis.txt in the spool directory for the printer named dj, where it would be processed by lpd. It would then print a second copy of thesis.txt.&lt;br /&gt;
 $ lpr -#2 -sP dj thesis.txt  &lt;br /&gt;
&lt;br /&gt;
LPQ - viewing the print queue&lt;br /&gt;
 $ lpq  # returns the contents of the default printer's queue&lt;br /&gt;
 lp is ready and printing&lt;br /&gt;
 Rank   Owner      Job  Files                            Total Size&lt;br /&gt;
 active mwf        31   thesis.txt                       682048 bytes&lt;br /&gt;
&lt;br /&gt;
LPRM - cancel jobs&lt;br /&gt;
 $ lprm    #cancel all user’s jobs&lt;br /&gt;
 $ lprm 31   #cancel job 31 (thesis.txt) on the default printer.&lt;br /&gt;
&lt;br /&gt;
LPC - controlling the lpd program with lpc&lt;br /&gt;
 $ lpc &lt;br /&gt;
By default, this enters you into an interactive mode, and you can begin issuing commands. &lt;br /&gt;
 $ lpc status all&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;lpc&amp;lt;/code&amp;gt; command-line arguments; any commands marked with ‘option’ can either be a printer name (lp, print, etc) or the keyword ‘all’, which means all printers&lt;br /&gt;
*disable option - prevents any new printer job from being entered&lt;br /&gt;
*down option - disables all printing on the printer&lt;br /&gt;
*enable option - allow new jobs to enter the print queue&lt;br /&gt;
*quit (or exit) - leave lpc&lt;br /&gt;
*restart option - restarts lpd for that printer&lt;br /&gt;
*status option - print status of printer&lt;br /&gt;
*up option - enable everything and start a new lpd&lt;br /&gt;
&lt;br /&gt;
= The RedHat printtool (needs reworking) =&lt;br /&gt;
Just a quick note here on RedHat's amazing printtool program. It seems to do everything that a magicfilter would do. RedHat already installs many of the programs to do the filtering. Here's how I have my printer set up under RH 4.0 with an HP LJ 4L connected to my parallel port (should be the same for other versions of RH as well).&lt;br /&gt;
&lt;br /&gt;
Become root and fire up printtool (if you su'ed, you remembered to SETENV DISPLAY :0.0 and xhost +, right?)&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Add&amp;quot;, and hit &amp;quot;OK&amp;quot; for a local printer.&lt;br /&gt;
&lt;br /&gt;
Fill in the printer device (/dev/lp1 for me)&lt;br /&gt;
&lt;br /&gt;
Fill in the input filter - Select a printer type, resolution, and paper size (ljet4, 300x300, and letter)&lt;br /&gt;
&lt;br /&gt;
Hit &amp;quot;OK&amp;quot; all the way back, and restart the lpd.&lt;br /&gt;
&lt;br /&gt;
Just like rolling an /etc/printcap file by hand, you can have multiple printer definitions for each physical printer. One for different paper sizes, resolutions, etc.&lt;br /&gt;
&lt;br /&gt;
Next Previous Contents&lt;/div&gt;</summary>
		<author><name>Pio2pio</name></author>
	</entry>
</feed>