Return to BSD News archive
From: brian@shift.utell.net (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Printer help Date: 29 Apr 1997 14:56:53 GMT Organization: Awfulhak Ltd. Lines: 42 Message-ID: <5k527l$omm@ui-gate.utell.co.uk> References: <3363DB37.2781E494@qnet.com> Reply-To: brian@awfulhak.org, brian@utell.co.uk NNTP-Posting-Host: shift.utell.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!news.flex.com!www.nntp.primenet.com!nntp.primenet.com!newsfeed.nacamar.de!rill.news.pipex.net!pipex!hole.news.pipex.net!pipex!news.utell.co.uk!usenet Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39939 In article <3363DB37.2781E494@qnet.com>, Duane Ellison <duane@qnet.com> writes: > I really hate to ask this but I have not been able to get this darn > thing to work correctly. Probably because I am in a time crunch on a > development cycle. > > I have an HP DeskJet 320 and I am have been unable to setup printing on > it. I attempted to follow the handbook information. I can get it to > print one line fro the lpttest and then the printer freaks out. > > My goal here is to be able to print out the source code that I am > working on without having to move it to a another box to print. I know > that I must be missing something simple here and my mind is probably in > the wrong place (like in all of the 4.4BSD PROGRAMMER'S MANUALS). Any > help would be greatly appreciated! > > Thanks in advance for any help or pushes into the right direction. You should really post more info (like what your current printcap entry looks like). I suspect the problem is a CR-LF one. You need to either put the printer into "accept CR as CR-LF" or get the unix box to send CR-LF instead of CR. Printers are usually changed by playing with dip-switches. The latter can be fixed by having an output filter in printcap: :of=/usr/local/sbin/addlf: and addlf saying: #! /bin/sh sed 's/$/^M/' Note, the ^M is a *real* ^M (^V^M if you're typing in vi). > Duane... -- Brian <brian@awfulhak.org> <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour !