From owner-freebsd-questions Sun Oct 5 14:22:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA10495 for questions-outgoing; Sun, 5 Oct 1997 14:22:44 -0700 (PDT) Received: from chain.freebsd.os.org.za (3hpwOAqddJQibwZ6crBhXG/Wa2Hm45Io@chain.iafrica.com [196.7.74.174]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA10480 for ; Sun, 5 Oct 1997 14:22:39 -0700 (PDT) Received: from localhost (khetan@localhost) by chain.freebsd.os.org.za (8.8.7/8.8.7) with SMTP id XAA00184; Sun, 5 Oct 1997 23:22:21 +0200 (SAT) Date: Sun, 5 Oct 1997 23:22:21 +0200 (SAT) From: Khetan Gajjar X-Sender: khetan@chain Reply-To: Khetan Gajjar To: rknebel@mail.microserve.net cc: freebsd-questions@FreeBSD.ORG Subject: Re: printing In-Reply-To: <19971005131150.31271@my.domain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 5 Oct 1997 rknebel@mail.microserve.net wrote: >When I try to print postscript ie from xv or netscape I get about 6 pages >0f ghostscript error messages. I use this, which works quite well. In whatever printer application I want to use, I specify nonpsprint. This sends the print job to printer lp (the default). A nonpsprint file (shell script) #!/bin/sh /usr/local/bin/nonpsconvert | lpr -Plp nonpsconvert (also a shell script) #!/bin/sh read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then /usr/local/bin/ps2pcl && exit 0 else /usr/local/bin/a2ps -ns -nH -d -1 -F9 -p -q | /usr/local/bin/ps2pcl && exit 0 fi exit 2 ps2pcl (also a shell script) #! /bin/sh gs -q -sDEVICE=djet500c -r300x300 -sOutputFile=- -SPAPERSIZE=a4 - This works quite nicely for me. --- Khetan Gajjar - whois kg1779 | khetan@iafrica.com or khetan@os.org.za http://chain.iafrica.com/~khetan | PGPKey : finger khetan@chain.iafrica.com UUNET Internet Africa Support | FreeBSD enthusiast-www2.za.freebsd.org Unix is user friendly; it's just selective about who it calls a friend!