From owner-freebsd-questions Mon Aug 24 22:55:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA05228 for freebsd-questions-outgoing; Mon, 24 Aug 1998 22:55:18 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from Tele.TM.Odessa.UA (Tele.TM.Odessa.UA [195.66.200.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA05202 for ; Mon, 24 Aug 1998 22:54:58 -0700 (PDT) (envelope-from dima@transe.tm.odessa.ua) Received: from transe.tm.odessa.ua (TransE.TM.Odessa.UA [195.66.198.9]) by Tele.TM.Odessa.UA (8.8.5/8.8.5/TM-Mail-2.5) with ESMTP id IAA08033 for ; Tue, 25 Aug 1998 08:53:59 +0300 (EEST) Received: from transe.tm.odessa.ua (transe.tm.odessa.ua [192.168.1.1]) by transe.tm.odessa.ua (8.8.7/8.8.7) with ESMTP id IAA00880 for ; Tue, 25 Aug 1998 08:56:02 +0300 (EEST) (envelope-from dima@transe.tm.odessa.ua) Message-ID: <35E251F2.78031151@transe.tm.odessa.ua> Date: Tue, 25 Aug 1998 08:56:02 +0300 From: ADM Organization: TE X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Printing from FreeBSD to Windows NT Workstation Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a printer LaserJet 6p connected to Windows NT Workstation 4.0 (SP3) There is a service of TCP/IP printing started on it. When i try to print any plain txt file from my FreeBSD box , everything seems to be allright. But when i need to print some graphics or PS files printer start to print something like PCL commands, not correct image. here is a fragment: --------- .?k2G.%-12345@PJL ENTER LANGUAGE = PCLXL )HP-PCL XL;1;1 NX...... special charecters .... and so on. --------- When I connect this printer dirrectly to FreeBSD box it prints everything well. In all cases i use the same if filters as described in handbook ---------------------------------- read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then # # It is PostScript; use Ghostscript to scan-convert and print it # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=lj5mono -sOutputFile=- - \ ?? exit 0 else echo $first_line ?? cat ?? printf "\f" ?? exit 0 fi exit 2 ---------------------- Can any one tell how to fix it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message