[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2 questions.....

> Second is a question with Ghostscript, I use gs to print postscript files on
> my deskjet.  Now I use a function in my .bashrc to invoke it.  The only
> problem is that when it is done printing I get the GS> prompt and have to
> type "quit" to finish printing and eject the paper.  Is there a way or
> option to use that will finish printing and eject the paper automatically?

Instead of using gs directly, I'd use lpr, especially since lpr is the
standard Unix print command. Here's my entry in /etc/printcap

# /etc/printcap: printer capability database. See printcap(5).
# You can use the filter entries df, tf, cf, gf etc. for
# your own filters. See /etc/filter.ps, /etc/filter.pcl and
# the printcap(5) manual page for further details.
#        :of=/etc/filter.pcl:

lp|My LJIIP pretending to be a Postscript printer:\

Then my /etc/filter.ps program is:

# This is a simple filter for printing postscript files, (see /etc/printcap).

# HP Deskjet 500 printer device
#/usr/bin/gs -q -dSAFER -sDEVICE=djet500 -dNOPAUSE -sOutputFile=- -

/usr/bin/gs -q -dSAFER -sDEVICE=ljet2p -dNOPAUSE -sOutputFile=- -

So, to print a postscript file, I just use lpr:

lpr filename

and lpr sends it to ghostscript, and re-routes gs's output to the printer.

> Thanks for any help....
>         Andy

Gilbert Ramirez Jr.                     gram@merece.uthscsa.edu
University of Texas                     http://merece.uthscsa.edu/gram
Health Science Center at San Antonio    University Health System

Reply to: