Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!fu-berlin.de!sirius.physik.fu-berlin.DE!not-for-mail From: graichen@sirius.physik.fu-berlin.de (Thomas Graichen) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: HP DeskJet 600 question Date: 2 Oct 1995 19:32:16 GMT Organization: Freie Universitaet Berlin Lines: 54 Message-ID: <44peo0$16i@fu-berlin.de> References: <87zqfkk5b2.fsf@osti.rmt.utk.edu> NNTP-Posting-Host: sirius.physik.fu-berlin.de (130.133.3.140) X-Access: 16 17 18 X-Newsreader: TIN [version 1.2 PL2] Edward Wolpert (wolpert@osti.rmt.utk.edu) wrote: : -----BEGIN PGP SIGNED MESSAGE----- : Folks-- : I've recently got an HP deskjet 600. I'm using gs to convert : postscript documents to pcl3, what the 600 understands. I'm using the : output driver djet500. Has anyone else used a HP deskjet 600? What : are your configs? (Printcap, etc) My printcap is : lp:lp=/dev/lpt0:sh:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs: : basically. I'm working on some conversion filters, so sending print : jobs to lp will go through the gs->pcl3 filter, and make another queue : for text as well, that will go though a different filter. Anyone else : do anything similar? don't know if this is what you want - but this is my way (hp600 too): /etc/printcap: lp:lp=/dev/lpt0:sd=/var/spool/lpd:sh:lf=/var/log/lpd-errs:\ :if=/usr/local/lib/ghostscript/filter.deskjet /usr/local/lib/ghostscript/filter.deskjet: #!/bin/sh # # printer filter for hp-deskjet compatible printers # # this turns on the LF -> CR + LF translation printf "\033&k2G" # here we decide if it's postscript or not - postscript goes through gs read first_line first_two_chars=`echo "$first_line" | cut -c1-2` if [ "$first_two_chars" = "%!" ]; then ( echo "$first_line"; cat ) | /usr/local/bin/gs \ -q -dNOPAUSE -sDEVICE=deskjet -sOutputFile=- -sPAPERSIZE=a4 \ - /usr/local/lib/ghostscript/quit.ps else ( echo "$first_line"; cat; printf "\014" ) fi works nice for me - for text and ps - hope this helps t _______________________________________________________||_____________________ __|| Perfection is reached, not when there is no __|| thomas graichen longer anything to add, but when there __|| freie universitaet berlin is no longer anything to take away __|| fachbereich physik __|| - Antoine de Saint-Exupery - __|| ___________________________||____email: graichen@omega.physik.fu-berlin.de____