From owner-freebsd-questions Tue Aug 29 10:38:07 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id KAA16254 for questions-outgoing; Tue, 29 Aug 1995 10:38:07 -0700 Received: from central.picker.com (central.picker.com [144.54.31.2]) by freefall.FreeBSD.org (8.6.11/8.6.6) with SMTP id KAA16240 for ; Tue, 29 Aug 1995 10:38:04 -0700 Received: from ct.picker.com by central.picker.com with smtp (Smail3.1.28.1 #3) id m0snUO0-0004rnC; Tue, 29 Aug 95 13:23 EDT Received: from elmer.ct.picker.com ([144.54.52.5]) by ct.picker.com (4.1/SMI-4.1) id AA08560; Tue, 29 Aug 95 13:23:15 EDT Received: by elmer.ct.picker.com (5.0/SMI-SVR4) id AA09446; Tue, 29 Aug 1995 13:20:37 +0500 From: rhh@ct.picker.com (Randall Hopper) Message-Id: <9508291720.AA09446@elmer.ct.picker.com> Subject: Re: HP print filter script To: freebsd-questions@freebsd.org Date: Tue, 29 Aug 1995 13:20:36 -0400 (EDT) Reply-To: rhh@ct.picker.com Organization: Picker International, CT Division X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1013 Sender: questions-owner@freebsd.org Precedence: bulk > I have been unsuccessful in getting plain text to print to a remote > printer. I have been able to use a2ps to print, but it seem like a work > around, as I can print fine with a Sun connected to the printer. > > I have tried the following: > > #!/bin/sh > printf "\033E\033&k2G" > cat - > printf "\033E" > > and the one before it had: > > #!/bin/sh > echo "\027&k3G" > cat > exit lp|LaserJet 4P Printer:\ :lp=/dev/lpt0:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\ :mx#0:ff=\033E\033&k2G:fo:sh:tr=\033E: This works for me. I don't remember whether I aliased lpr to lpr w/ -h option or if this actually suppresses the burst page, but it does handle EOL translation for plain text (my LJ is set for DOS EOL). Randall _____________________________________________________________________________ Randall Hopper | Picker International rhh@ct.picker.com | FAX: (216) 473-7098 *** WINDOWS from the folks who brought you EDLIN ***