SUMMARY: Printcap HP550

From: Guy NILLES 547611 (GNILLES@restena.lu)
Date: Wed Mar 30 1994 - 02:28:00 CST


Sorry for being so late,

I was asking the printcap entry for a HP500, I received some response,
the one that is listed below comes from glenn@uniq.com :

Thanks to glenn@uniq.com
          baumann@proton.
and some more that I loose after a machine crash, sorry !

----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 76

I have one of the HP Deskjet 500's. I use it with ghostscript so that I
can print postscript as well as text. Works pretty well most of the
time, although those big postscript files can take a long time...

/etc/printcap:

lp|dj|DeskJet 500 in raw mode:\
        :lp=/dev/ttyb:\
        :br#19200:\
        :ms=pass8,onlcr,crtscts,-echo:\
        :sd=/usr/spool/lpd:\
        :lf=/var/spool/lpd/lp-log:\
        :sb:sh:mx#0:\
        :if=/usr/local/lib/hplaserjet.filter:\
        :cf=/usr/local/lib/hplaserjet.land:\
        :df=/usr/local/lib/hplaserjet.land_12:\
        :nf=/usr/local/lib/hplaserjet.port_12:\
        :rf=/usr/local/lib/hplaserjet.land_lp:\
        :tf=/usr/local/lib/hplaserjet.port_lp:
#
ps|lw|djet500 driven by ghostscript:\
        :lp=/dev/null1:\
        :of=/usr/local/lib/ghost.filter:\
        :sd=/usr/spool/lpd/ps:\
        :sh:mx#0:

Dip switch settings, left to right:
down, down, down, down, down, up, down, down
up, up, down, down, up, down, down, up

There are two filter scripts:
/usr/local/lib/hplaserjet.filter and /usr/local/lib/ghost.filter. All
the other filter names mentioned are a link to hplaserjet.filter.

format: comand
portrait, 10 pitch lpr filename
landscape, 10 pitch lpr -c filename
landscape, 12 pitch lpr -d filename
portrait, 12 pitch lpr -n filename
landscape, 17 pitch lpr -f filename
portrait, 17 pitch lpr -t filename
postscript lpr -Pps filename

I use ghostscript 2.6.1 to do the conversion from postscript to HP-PCL
using the laserjet driver.

regards,

--
Glenn Satchell                    glenn@uniq.com.au  | "This is a unix 
system.
Uniq Professional Services Pty Ltd  ACN 056 279 335  | I can do this easy."
PO Box 70, Paddington, NSW 2021, (Sydney) Australia  |
Phone 02 360 7434 Pager 016 287 000 Fax 02 331 2572  | - Lex, Jurassic Park
       "Sun Accredited System Consultants"           |

#! /bin/sh # # @(#)hplaserjet 1.1 88/10/27 Sun Microsystems Inc 1988 # # This file should be located in /usr/local/lib # # This is the output filter for use wth HP LaserJet I, II and III. # # note: the filter specified by if= is called only if no # other filters are called. # PATH=/usr/bin:/usr/ucb export PATH prog=`basename $0` # # reset the printer before each printing # RESET=" " echo -n "$RESET" sleep 1 # # send the escape sequence to the printer, so that: # CR is mapped to CR # LF is mapped to CR LF # FF is mapped to CR FF # echo -n "k2G" # # A4 paper size # echo -n "l26A" # # eject a page # EJECT="l0H" # # mode # LETTER="2Q" DRAFT="1Q" # # portrait or landscape mode # PORT="l0O" LAND="l1O" # # normal or bold # NORMAL="0B" BOLD="3B" # # pitch # TEN="10H" TWELVE="12H" SIXTEEN="16.66H" TWENTY="20H" # # process the arguments to set the font size, mode, etc. # $prog is the name of this shell script # case "$prog" in *land) # landscape mode courier font MODE="$LAND$TEN" ;; *port) # portrait mode courier font MODE="$PORT$TEN" ;; *land_12) # landscape mode courier font MODE="$LAND$TWELVE" ;; *port_12) # portrait mode courier font MODE="$PORT$TWELVE" ;; *land_lp) # landscape mode lineprinter font MODE="$LAND$SIXTEEN" ;; *port_lp) # portrait mode lineprinter font MODE="$PORT$SIXTEEN" ;; *) # do nothing MODE="$DRAFT" ;; esac echo -n "$MODE" # # now send the file to the default print queue for printing # cat - status=$? # # give a meaningful exit status echo -n "$EJECT" exit $status ----------

X-Sun-Data-Type: shell-script X-Sun-Data-Description: shell-script X-Sun-Data-Name: ghost.filter X-Sun-Charset: us-ascii X-Sun-Content-Lines: 3

#!/bin/sh PATH=/usr/bin:/usr/ucb:/usr/local/bin; export PATH gs -q -sDEVICE=laserjet -r300 -dNOPAUSE -sOutputFile=\|lpr - >/dev/null 2>&1

----------------------------------------------------------------------------

Another one :

hp500:\ :lp=/dev/ttya:\ :sd=/var/spool/hp:\ :lf=/var/adm/lp-errs:\ :br#9600:fs#06021:fc#0777:\ :sb:sh:pl#60:



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:58 CDT