Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 1998 18:25:53 +0100
From:      Christopher Raven <c.raven@ukonline.co.uk>
To:        Patrick Gardella <patrick@cre8tivegroup.com>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Ghostscript hell :-()
Message-ID:  <362F6AA1.43D6D636@ukonline.co.uk>
References:  <XFMail.981022110619.patrick@cre8tivegroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


<snip>


> > 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
> >

<snip>

-- 
[ 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?362F6AA1.43D6D636>