From owner-freebsd-questions Thu Oct 22 08:08:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA09842 for freebsd-questions-outgoing; Thu, 22 Oct 1998 08:08:12 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from iglou.com (iglou3.iglou.com [192.107.41.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA09831 for ; Thu, 22 Oct 1998 08:08:01 -0700 (PDT) (envelope-from patrick@cre8tivegroup.com) Received: from [204.255.227.95] (helo=gateway.cre8tivegroup.com) by iglou.com with esmtp (8.9.1/8.9.1) id 0zWMKT-0001uo-00; Thu, 22 Oct 1998 11:07:09 -0400 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <362F38C9.F7C72C4D@ukonline.co.uk> Date: Thu, 22 Oct 1998 11:06:19 -0400 (EDT) From: Patrick Gardella To: Christopher Raven Subject: RE: Ghostscript hell :-() Cc: freebsd-questions Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here are some pages that might help you getting the Epson Stylus line to work: http://www.u.arizona.edu/~zdw/uniprint.html http://eunuchs.org/epson/index.html They're for Linux, but they helped get my Stylus 600 works very well with FreeBSD. I use the unified printer stuff for mine (which is at home, or I would send it to you now.) I'll try to remember tonight to get the info. As a simple test, try: gs @stc.upp -sOutputFile="|lpr" yourfile.ps -c quit or for the 800 specifically: gs @stc800pl.upp -sOutputFile="|lpr" yourfile.ps -c quit Patrick On 22-Oct-98 Christopher Raven wrote: > This has been bugging me for a while now, > > I saw that someone else was having this problem the other day. As the > only answer I saw offered (by Doug) failed to work from me, and as I > can't find anything in the mail archives, the FAQ, > comp.lang.postscript or on the WWW, here's my problem: Under FreeBSD > 2.2.7 with Ghostscript 5.10 and an Epson Stylus Color 800; Postscript > files print out (under ghostview) as the postscript header but nothing > else. Under Star Office it prints garbage, and from the CLI it gives > the error message : > > Error: /undefind in gs > Operand stack: > > Execution stack: > %interp_exit .runexec2 --nostringval-- --nostringval-- > --nostringval-- 2 %stopped_push --nostringval-- 0 3 > %oparray_pop --nostringval-- --nostringval-- false 1 > %stopped_push .runexec2 --nostringval-- --nostringval-- > --nostringval-- 5 3 %oparray_pop > Dictionary stack: > --dict:722/809-- --dict:0/20-- --dict:43/200 > Current allocation mode is local > Current file position is 3 > GS> > > > > I can print to the /dev/lpt0 no problems for ASCII. I have also tried > using the unified printer drivers without success. :-() > > > > This is my /etc/printcap entry: > ># > Epson800|lp|Epson 800 Postscript:\ > :sh:sd=/var/spool/Epson800:\ > :lp=/dev/lpt0:\ > :if=usr/local/libexec/epson800: ># > > > This is my /usr/local/libexec/epson800 (script). As far as I can tell > it's near as damn the one in the handbook. > > >#!/bin/sh ># ># epson800 - Print using Ghostscript on my Epson Stylus Color 800 ># installed in /usr/local/libexec/epson800 ># > ># ># Treat LF as CR+LF: ># > printf "\033&k2G" || exit 2 > ># ># Read first two characters of file ># > read first_line > first_two_chars=`expr "$first_line" : `\(..\)'' > > if [ "$first_two_chars" = "%!" ]; then > # > # It's postscript - so use Ghostscript > # > /usr/local/bin/gs -q -dSAFER -dNOPAUSE -q -sDEVICE=stcolor > -sModel=st800 -sOutputFile=- - > && exit 0 > > else > # > # Plain text > # Then eject last page > # > echo $first_line && cat && printf "\f" && exit 0 > fi > > exit 2 > > > > > > I haven't changed any of the default settings in ghoscript itself. It > seems perhaps that I have not fully configured ghostscript? Any > suggestions welcome. > > If (when) I get this sorted I will post a step-by-step guide for it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message