From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <954853031a0cf97c301740a691d34b4e@tombob.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] Newbie question on printing Date: Tue, 26 Jul 2005 12:33:13 +0100 From: Robert Raschke In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 6f14d3a2-ead0-11e9-9d60-3106f5b1d025 > On 7/26/05, Steve Simon wrote: >> I print to lasers which are connected via HP jet-direct boxes using: >> >> /sys/lib/lp/devices: >> slp_a3 SLP_A3 slp-oh-a3 A4_LPQ - post+duplex+nohead generic lpdspool lpd - - FIFO > > An even better solution. Try this first. The difference between > this and your original devices line is that this one uses the > printer's name as the "spooler machine", i.e. the address to > send the job to. > > Russ Steve, Russ, thank you very much. I now have clp550n_ps robbys-room clp550n A4_LPQ - post+600dpi+nohead generic lpdspool lpd - - FIFO and from 'lp -D -dclp550n_ps -q' I get grep '^clp550n_ps[ ]' /sys/lib/lp/devices bind -b /sys/lib/lp/stat /bin exec lpd echo transmission log: transmission log: test -r /sys/lib/lp/log/clp550n_ps.st echo printer queue: printer queue: /386/bin/aux/lpdsend -q -dA4_LPQ clp550n connecting to tcp!clp550n!printer trying from port 721...connected PortThru lpd: No Jobs on this queue exit '' Lovely. I have two simple questions, so I can understand what is happening. The A4_LPQ, what does that do? It is in the OUT_DEV field but ain't a device, and just guessing I would assume it names the queue to use. Is that corerct? Could that be any text, or does the LPD in the printer have ideas on how to name and handle queues? Second, is it good practice to have the machine name of the printer (/lib/ndb/local entry) be different from the /sys/lib/lp/devices printer name? I know that I can add more "virtual" printers to turn on duplex and color and what not. I can't actually verify that a page got printed, as I'm doing this remotely via a drawterm. But maybe I'll have a page sitting there for me when I get home tonight. Thanks again, Robby