From owner-freebsd-questions Thu Oct 22 10:27:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA25437 for freebsd-questions-outgoing; Thu, 22 Oct 1998 10:27:38 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail3.svr.freeserve.net (mail3.svr.freeserve.net [194.152.65.211]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA25431 for ; Thu, 22 Oct 1998 10:27:36 -0700 (PDT) (envelope-from c.raven@ukonline.co.uk) Received: from modem-107.aluminum.dialup.pol.co.uk ([62.136.6.107] helo=ukonline.co.uk) by mail3.svr.freeserve.net with esmtp (Exim 2.05iplimit-2 #4) id 0zWOVc-0001Kf-00; Thu, 22 Oct 1998 18:26:48 +0100 Message-ID: <362F6AA1.43D6D636@ukonline.co.uk> Date: Thu, 22 Oct 1998 18:25:53 +0100 From: Christopher Raven Organization: CIAN X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 2.2.7-RELEASE i386) MIME-Version: 1.0 To: Patrick Gardella CC: freebsd-questions Subject: Re: Ghostscript hell :-() References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Patrick Gardella wrote: > > 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 > I have seen them before, but there didn't (?) appear to be anything for automating printing under FreeBSD. > 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 This one just spews out blank pages, > > or for the 800 specifically: > > gs @stc800pl.upp -sOutputFile="|lpr" yourfile.ps -c quit > But this one prints fine ~ I'm not sure what else got tweaked in my fiddling, but this one didn't work either the last time I tried ! I just need to automate it now........ I don't suppose anyone has a copy of their printcap and filter files lying about? There seems to be an error in mine as they still just spew out the Ghostscript headers. BTW I have added the :mx#0: \ line to printcap, that was missing I noticed. TIA, Chris R. > > 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 > > -- [ Christopher Raven [ E-mail: c.raven@ukonline.co.uk [ ICQ: 2254369 [ http://www.FreeBSD.org/ "The Power To Serve" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message