*BSD News Article 77895


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!news.stealth.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!news1.erols.com!news
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Printing problem with Okidata OLE600.
Date: Mon, 09 Sep 1996 19:39:40 +0000
Organization: Erol's Internet Services
Lines: 32
Message-ID: <3234727C.6028@www.play-hookey.com>
References: <01bb9e93$2739c860$9bc4abc7@glen>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win16; U)

Glen wrote:
> 
> This is my /etc/printcap!
> 
> oki|lp|okidata laser:\
> :lp=/dev/lpt0:sh:sd=var/spool/lpd/oki:\
> :if=/usr/local/libexec/okiif:
> 
> I have created the /var/spool/lpd/oki and chown to daemon.
> This is the filter file I'm using.
> 
> printf "\033\&k2G" && cat && printf "\f" && exit 0
> exit 2
> 
> When I print I still get the stair case effect!!!!
> My next problem is my printer only prints the first few  print requests
> then when I send another print job it prints blank pages only a couple.
> Then I check the  que and it has been processed.   If the system is
> shutdown the printer will print a few more requests.   Then it will start
> printing blank pages for each request.
> 

Sounds like the classic LF-without-CR problem on the printer. If you
can't set your printer to automatically do a CR when it reads LF, you'll
have to add a short (C or other language) routine to check each
character and send a CR prior to each LF.
-- 
Ken

Are you interested in   |
byte-sized education    |   http://www.play-hookey.com
over the Internet?      |