On Mon, 1 Jun 1998, Mark Malecha wrote:
> > On Fri, 29 May 1998, Mark Malecha wrote:
> > > prints OK, but I would like to be able to invoke printing 
> > > by lpr.  What is the easiest way to do that?
> > 
> > Set up a delivery filter. Do a "man printcap" and look at "if=". 
> 
> Yes, I got that part going.  My printcap entry for the 
> printer is:
> 
> unity:\
>         :sd=/var/spool/lpd/unity:\
>         :mx#0:\
>         :sh:\
>         :if=/var/spool/lpd/unity/unity:\
>         :lp=/dev/null:
> 
> where /var/spool/lpd/unity/unity is manufacturer driver for 
> handling the tftp to the printer.  lpr requests from the 
> linux machines work OK, but there is no output from the  
> Win95 machines coming through the samba server.  Something 

Okay, I've now actually put the "epsonps" program onto my web page (sorry
about that, yesterday was a killer, had to write a program to sit on a
named pipe holding a serial port open for print jobs because of a bug in
the Computone Intelliport II driver where it loses track of open counts if
you continually open and close a port). Here's an example filter: 

----------------cut here-------------
!/bin/sh 
#TYPE=lj 
# This is a filter to convert Postscript to LaserJet for printing. 

DEVICE=ljet2p #DEVICE=laserjet RESOLUTION=300x300 PAPERSIZE=letter
SENDEOF=1

/usr/local/bin/epsonps - -R -t11 | gs -q -sDEVICE=$DEVICE \
                -r$RESOLUTION \
                -sPAPERSIZE=$PAPERSIZE \
                -dNOPAUSE \
                -dSAFER \
                -sOutputFile=- -
--------------end filter---------------------------------
You would simply put a "|" after the last '-' and tack on your
delivery stuff to that. You probably also don't need the 'gs' if the
printer is already a Postscript printer. Also note that 'epsonps' will
pass through Postscript unchanged, so it's okay to use in a filter like
this. 

Either way, to print from SMB clients, two things have to be true: a) the
remote user has permission to print (either by using the same
login/password pair or by declaring the printers to be owned by the guest
user), and b) the client printer in the Printers folder on the Windows
machine has to be set up as a printer of type "Apple Laserwriter" (just to
choose a Postscript printer off the top of my head). 

Eric Lee Green   [EMAIL PROTECTED]          Executive Consultants
Systems Specialist               Educational Administration Solutions
             See http://members.tripod.com/~e_l_green


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to