Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 1995 08:40:12 -0700 (PDT)
From:      Wayne Hernandez <hernanw@FSL.ORST.EDU>
To:        questions <freebsd-questions@freebsd.org>
Subject:   HP print filter script
Message-ID:  <Pine.SUN.3.91.950829083243.14827A-100000@cornus.FSL.ORST.EDU>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.950829083243.14827A-100000>