Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!news13.agis.net!agis!newspeer1.agis.net!agis!news3.agis.net!agis!cancer.vividnet.com!news.wildstar.net!imci5!news.internetMCI.com!pull-feed.internetmci.com!www.facs.federated-fds.com!news.ececs.uc.edu!news.cs.indiana.edu!news.sgi.com!news.mathworks.com!news.sprintlink.net!news-peer.sprintlink.net!server1.nw.ixe.net!server1.adam.ixe.net!wirehub!news.euro.net!btnet-feed2!btnet!dispatch.news. demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail From: brian@anorak.coverform.lan (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: printcap question Date: 4 Nov 1996 04:41:40 -0000 Organization: Coverform Ltd. Lines: 72 Sender: brian@awfulhak.demon.co.uk Message-ID: <55js64$26b@anorak.coverform.lan> References: <55b6co$7rv@netaxs.com> <55gcpm$n3v@Symiserver2.symantec.com> Reply-To: brian%anorak.coverform.lan@awfulhak.demon.co.uk NNTP-Posting-Host: anorak.coverform.lan X-NNTP-Posting-Host: awfulhak.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 In article <55gcpm$n3v@symiserver2.symantec.com>, tedm@agora.rdrop.com writes: : In <55b6co$7rv@netaxs.com>, heller@socko.cdnow.com (A. Karl Heller) writes: >> >> I'm having some problems getting an HP Laserjet4m+ to work correctly >>with FreeBSD 2.1.5. >> >> I have this printcap: >> >>upstairs|raw: \ >> :rm=hp4m.domain.com: \ >> :rp=lp: \ : : I'm not sure that you understood HP's documentation properly, or if your using a non-HP : JetDirect printer card, but you can save yourself a deal of trouble if you correct : your printcap entry. : : JetDirect cards support two remote print queues under LPD, one is "raw" the : other is "text" The text queue does the newline conversions automatically, : and is intended for use with Unix directory listings and other such stuff. Nice one ! I didn't actually read HPs documentation - that's my reason for getting this wrong :) Another thing, output filters and "rm" capabilities don't work together in lpd - why I cannot fathom ! If you *really* want both, you could try the following patch (from 2.2-960323 - should be pretty much the same with all versions): *** usr.sbin/lpr/lpd/printjob.c Thu May 9 11:29:56 1996 --- usr.sbin/lpr/lpd/printjob.c.orig Sat Sep 2 18:53:14 1995 *************** *** 215,221 **** i = strlen(line); if (write(lfd, line, i) != i) syslog(LOG_ERR, "%s: %s: %m", printer, LO); ! if (!remote || ofilter) i = printit(q->q_name); else i = sendit(q->q_name); --- 215,221 ---- i = strlen(line); if (write(lfd, line, i) != i) syslog(LOG_ERR, "%s: %s: %m", printer, LO); ! if (!remote) i = printit(q->q_name); else i = sendit(q->q_name); *************** *** 1259,1265 **** /* * Start up an output filter, if needed. */ ! if (OF) { int p[2]; char *cp; --- 1259,1265 ---- /* * Start up an output filter, if needed. */ ! if (!remote && OF) { int p[2]; char *cp; -- Brian <brian%anorak.coverform.lan@awfulhak.demon.co.uk> <http://www.awfulhak.demon.co.uk/> Don't _EVER_ lose your sense of humour.... .