Return to BSD News archive
#! rnews 3035 sserve.cc.adfa.oz.au Newsgroups: comp.unix.bsd.freebsd.misc Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nexus.coast.net!news1.oakland.edu!news.concourse.com!ragnarok.oar.net!malgudi.oar.net!picker!speleo!rhh From: rhh@speleo.ct.picker.com (Randall Hopper) Subject: Re: HP LaserJet Printcap entry Message-ID: <1995Jun21.214626.985@picker.com> Keywords: hp laserjet printcap Sender: rhh@ct.picker.com Nntp-Posting-Host: 144.54.48.17 Organization: Picker International, Inc. References: <3ro0q4$17m@inforamp.net> Date: Wed, 21 Jun 1995 21:46:26 GMT Lines: 79 > Paul Griffith (paulg@inforamp.net): > 1) I am looking for a Printcap entry for a HP Laserjet (non-postscript) > printer, can someone please post one. Here's one I hacked together for my HP LaserJet 4P (w/o Postscript SIMM) so I can print plain text, postscript, and PCL (using different print queues). It works pretty well, but occassionally (when there's more than one job in the queue), the queue will just freeze and I'll have to use lpc to restart lpd -- it seems to die. If anyone has any suggestions for improvements I'd be definitely be interested in them. Randall _____________________________________________________________________________ Randall Hopper | Picker International Senior Software Engineer | CT Visualization and Connectivity rhh@ct.picker.com | FAX: (216) 473-7098 *** WINDOWS from the folks who brought you EDLIN *** ------------------------------/etc/printcap----------------------------------- # @(#)printcap 5.3 (Berkeley) 6/30/90 #lp|local line printer:\ # :lp=/dev/lp:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs: lp|LaserJet 4P Printer (Raw):\ :lp=/dev/lpt0:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\ :mx#0:ff=\033E\033&k2G:fo:sh:tr=\033E: text|LJ4P w/ Unix2Dos Text Preprocess:\ :lp=/dev/null:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\ :of=/usr/local/bin/textlj:\ :mx#0:sf:sh: ps|LJ4P w/ Ghostscript PS->PCL Preprocess:\ :lp=/dev/null:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\ :of=/usr/local/bin/gslj:\ :mx#0:sf:sh: #text|LJ4P w/ Unix2Dos Text Preprocess:\ # :lp=/dev/null:\ # :if=/usr/rhh/bin/unix2dos:\ # :rm=localhost:\ # :rp=lp: #ps|LJ4P w/ Ghostscript PS->PCL Preprocess:\ # :lp=/dev/null:\ # :if=/usr/local/bin/gslj:\ # :rm=localhost:\ # :rp=lp: ------------------------------/usr/local/bin/textlj---------------------------- #!/bin/sh PRINTER=lp PATH=/usr/bin:$PATH export PRINTER PATH unix2dos | lpr -h ---------------------------/usr/local/bin/gslj-------------------------------- #!/bin/sh TMPDIR=/usr/tmp PRINTER=lp GSLIB=/usr/local/lib/ghostscript/fonts PATH=/usr/local/bin:/usr/bin:$PATH export TMPDIR PRINTER GSLIB PATH #exec gs -q -sDEVICE=laserjet -r300 -dNOPAUSE -- gslp.ps $* #exec gs -sDEVICE=ljet4 -dNOPAUSE gslp.ps - > /usr/rhh/out 2>&1 exec gs -q -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=\|lpr gslp.ps -