[buug] Printing to Unix printer

Tom DeSot tomd@sacefcu.org
Mon, 3 Jul 2000 10:31:41 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01BFE503.C992E0E0
Content-Type: text/plain;
	charset="iso-8859-1"


 OK, I've got it to where it will at least print now.  However, I'm getting
major stair stepping and when I try to use the filter, I just get page after
page of nothing.

Here is my printcap file and my filter.  I'm hoping I'm just missing a line
in the printcap.

Cheers,

Tom

-----Original Message-----
From: Bill Schoolcraft
To: Tom DeSot
Cc: 'buug@weak.org '
Sent: 7/2/00 1:49 AM
Subject: Re: [buug] Printing to Unix printer

At Fri, 30 Jun 2000 it looks like Tom DeSot composed:


TD-->I've tried several printcap files and it never prints anything out.
When I
TD-->look at my print debug files it tells me it can't resolve the host.
Funny
TD-->thing though, I used another print test utility and it spit out
what I had
TD-->just tried to print from lpr.
TD-->
TD-->Am I missing something in my printcap file to force the page feed?
Has
TD-->anyone had this experience and found that it just won't work?
TD-->
TD-->I'd really appreciate any help that could be given.


Can we see the printcap files with some comments on what happened
with each ? 

Are you pointing to the printer by name or IP address ? Same network
? Can you "ping" the printer by name ? or by number ?


        Bill Schoolcraft         http://www.wiliweld.com
        PO Box 210076	         San Francisco, CA 94121
                " saevis tranquillus in undis "




------_=_NextPart_000_01BFE503.C992E0E0
Content-Type: application/octet-stream;
	name="princap1.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="princap1.txt"

#	$OpenBSD: printcap,v 1.3 1999/09/23 01:31:20 deraadt Exp $=0A=
=0A=
#lp|local line printer:\=0A=
#	:lp=3D/dev/lp:sd=3D/var/spool/lpd:lf=3D/var/log/lpd-errs:=0A=
=0A=
#rp|remote line printer:\=0A=
#	=
:lp=3D:rm=3Dprinthost:rp=3Dlp:sd=3D/var/spool/lpd:lf=3D/var/log/lpd-errs=
:=0A=
=0A=
#REMOTE HP4+=0A=
lp|lj|laserjet:\=0A=
:sd=3D/var/spool/lpd/lj:\=0A=
:rm=3Dxxx.xxx.xxx.xxx:\=0A=
:rp=3Dlp:\=0A=
:lp=3D/dev/null:\=0A=
:if=3D/usr/local/libexec/hpif:=0A=
:sh:=0A=

------_=_NextPart_000_01BFE503.C992E0E0
Content-Type: application/octet-stream;
	name="hpif.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="hpif.txt"

#!/bin/sh=0A=
#=0A=
# hpif - Simple text input filter for lpd for HP-PCL based printers=0A=
# Installed in /usr/local/libexec/hpif=0A=
#=0A=
# Simply copies stdin to stdout.  Ignores all filter arguments.=0A=
# Tells printer to treat LF as CR+LF.  Ejects the page when done.=0A=
                =0A=
printf "\033&k2G" && cat && printf "\033&l0H" && exit 0=0A=
exit 2=0A=

------_=_NextPart_000_01BFE503.C992E0E0--