From owner-freebsd-questions Tue Mar 14 5:16:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from saule.edi.lv (saule.edi.lv [195.13.137.1]) by hub.freebsd.org (Postfix) with ESMTP id C470E37B5B6 for ; Tue, 14 Mar 2000 05:16:30 -0800 (PST) (envelope-from zagursky@edi.lv) Received: from edi.lv (edi58 [195.13.137.58]) by saule.edi.lv (8.9.3/8.9.3) with ESMTP id PAA24223; Tue, 14 Mar 2000 15:14:25 +0200 (EET) Message-ID: <38CE3B5C.EE25CBE7@edi.lv> Date: Tue, 14 Mar 2000 15:15:10 +0200 From: Zagursky Organization: EDZI X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: ru,en MIME-Version: 1.0 To: orders@cdrom.com, freebsd-questions@freebsd.org Subject: request Content-Type: multipart/mixed; boundary="------------1DAE4EE68B58F97F1336B1EB" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------1DAE4EE68B58F97F1336B1EB Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Dear Sirs, We bought FreeBSD 3.3 version and unfortunately now we have some troubles wih printing. The problem is following: when we start printing (HP Laser Jet 4L) at graphic mode we can get only half of page ( the second one don't printing). Additional information: fail filter -lj4, ghostscript v.5.50.Please also see attached Unix text file. Sincerely, V .Zagursky ---------------------------------------------------------------------- Institute of Electr.&Comp. Science Fax: +371 7 555 337 14 Dzerbenes str., E-mail: zagursky@edi.lv LV - 1006, Riga Phone: 371-2-528938 Latvia ---------------------------------------------------------------------- --------------1DAE4EE68B58F97F1336B1EB Content-Type: text/plain; charset=koi8-r; name="lj4" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lj4" #!/bin/sh # # ifhp - Print Ghostscript-simulated PostScript on a LaserJet4L # Installed in /usr/local/libexec/lj4 # # Treat LF as CR+LF: # printf "\033&k2G" || exit 2 # # Read first two characters of the file # 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 -sPAPERSIZE=a4 -sDEVICE=ljet4 -r300 -sOutputFile=- - \ && exit 0 else # # Plain text or HP/PCL, so just print it directly; print a form # at the end to eject the last page. # echo "$first_line" && cat && printf "\f" && exit 0 fi exit 2 --------------1DAE4EE68B58F97F1336B1EB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message