From owner-freebsd-questions Tue Aug 29 08:40:17 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id IAA11107 for questions-outgoing; Tue, 29 Aug 1995 08:40:17 -0700 Received: from FSL.ORST.EDU (FSL.ORST.EDU [128.193.112.105]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id IAA11101 for ; Tue, 29 Aug 1995 08:40:15 -0700 Received: (from hernanw@localhost) by FSL.ORST.EDU (8.6.9/8.6.9) id IAA19505; Tue, 29 Aug 1995 08:40:13 -0700 Date: Tue, 29 Aug 1995 08:40:12 -0700 (PDT) From: Wayne Hernandez To: questions Subject: HP print filter script Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 The two scripts are different in different respects, the first uses \033 for the escape character, which I feel is correct. The second ends with exit but the first one does not. Also, I have :sh: in my printcap entry, but I still have to type lpr -h to suppress the header page. Any ideas? TIA Wayne