*BSD News Article 32862


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!yarrina.connect.com.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!psinntp!psinntp!merlin.hgc.edu!noni4737
From: noni4737@hgc.edu (walter noniewicz)
Subject: Output problems with parallel printer.  How do I fix?
Message-ID: <1994Jul16.014916.21211@merlin.hgc.edu>
Originator: noni4737@hgc.edu
Sender: usenet@merlin.hgc.edu (Action News Central)
Reply-To: noni4737@hgc.edu (walter noniewicz)
Organization: The Hartford Graduate Center
Date: Sat, 16 Jul 1994 01:49:16 GMT
Lines: 44

I am having problems getting my HP Laserjet II working.  It is connected
to the parallel port.  It isn't doing carriage returns nor being reset
after a print job.  Is it up to me to write a filtering program?  If so,
how do I implement it.  I also have an Adobe Postscript cartriage and I
would like to use that also.  So far I've been just piping it through
/dev/lpt0 which is OK but I'd like to be a 'real' Unix user :-)  Here is
what happened:

The test file contained:
This is my file.
This is another line of the same file.

First I altered the printcap as follows:
lp|local line printer:\
       :lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs:

And all I got was gibberish.  Arbitrary characters strewn all over.
Next I altered the printcap as follows:
lp|local line printer:\
       :lp=/dev/lpt0:\
       :pl=#60:pw=#80:\
       :sd=/var/spool/lpd/lp:\
       :sh:

Also, I created the spooling directory:
   cd /var/spool/lpd
   mkdir lp
   chown daemon.daemon lp
   chmod 755 lp

I killed the daemon, deleted all other files under /var/spool/lpd, shutdown
the system and reset the printer.  Then when I executed "lpr myfile" I
received:
This is my file.
                This is another line of the same file.

When I executed "lpr myfile" again, I received:
                                                      This is my file.
                                                                      This is


Many thanks,
Walter
noni4737@hgc.edu