*BSD News Article 25464


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!pipex!uknet!EU.net!sun4nl!tudelft.nl!dutrun2.tudelft.nl!dutsh7.tudelft.nl!stock
From: stock@dutsh7.tudelft.nl (Robert Stockmann)
Subject: Re: FreeBSD and Deskjet
Message-ID: <stock.757309024@dutsh7.tudelft.nl>
Sender: news@dutrun2.tudelft.nl (UseNet News System)
Nntp-Posting-Host: dutsh7.tudelft.nl
Organization: Delft University of Technology
References: <1993Dec27.210641.26376@sinkhole.unf.edu> <2fvvk8$np6@hq.hq.af.mil>
Date: Fri, 31 Dec 1993 03:37:04 GMT
Lines: 45

admin2@gad3b2.hq.af.mil (SrA Bob Huffman;57137) writes:

>Joseph Dougherty (jdough@sinkhole.unf.edu) wrote:

>[deleted]

>: 	However, I'm experienceing a problem I had previously under Linux.
>: When I pipe straight text to my HP Deskjet 500 on paralleldevice
>: /dev/lpa0, the printer prints one line of text, then spits out numerous
>: blank pages before quitting. Someone once mailed me a script file that set
>: up some kind of filter that made this work correctly, but it's long been lost.
>: If anyone has a clue as to how to fix this, I'd appreciate some e-mail.
>: 	Thanks.


>: Joe Dougherty
>: University of North Florida	
>: jdough@unf6.cis.unf.edu (preferred) cop0812@unf1vm.cis.unf.edu

>Please send it to me also...
Well here it is:

hpof begin:
--------------------------------------------------------------------
#!/bin/bash
#       echo -e '\033%-12345X@PJL comment' # universal exit language
#       echo -e '@PJL RESET'            # reset to defaults
#       echo -e '@PJL ENTER LANGUAGE = PCL' # USE pcl
        echo -e -n '\033E'               # reset
        echo -e -n '\033&k2G'            # translate LF->CR+LF
        cat                              # copy stdin to stdout
        echo -e -n '\033*s1F'            # flush all pages
        echo -e -n '\033E'               # reset the printer again.
#       echo -e '\033%-12345X@PJL comment' # universal exit language
        exit 0
-------------------------------------------------------------------
hpof end.

the entry in the printcap of linux looks like this:

lp:lp=/dev/lp1:sd=/usr/spool/lp1:sh:of=/usr/lib/hpof:mx#0: lf=/usr/adm/lpd-errs



Robert Stockmann		<stock@dutsh7.tudelft.nl>