> From [EMAIL PROTECTED] Mon Mar 15 06:33:38 2004 > > >> [printer] > >> | > >> [Windows Box]-----------------LPD----------------->[Lexmark Box] > >> | > >> [printer1] > > The Windows box is already speaking to the LPD on the Lexmark box, > sending a completely processed PCL printjob with PJL headers (which is > why I don't see a need for IFHP). I would like to plug the Linux box > right inbetween the two, and just use LPR, so there's no need for SAMBA > and IFHP, from my understanding. (I would like to keep complexity as low > as possible -- of course, if you tell me using SAMBA and IFHP is the way > to go, then I'll listen to your expert advice). > > > PRINTCAP: > > .common:sd=/var/spool/lpd/%P:filter=/usr/local/libexec/ifhp > > lexbox1-printer1-tray1:tc=.common:lp=printer1 > > :ifhp=model=hp4,outbin=tray1 > > lexbox1-printer1-tray2:tc=.common:lp=printer1 > > :ifhp=model=hp4,outbin=tray2 > > lexbox1-printer1-tray3:tc=.common:lp=printer1 > > :ifhp=model=hp4,outbin=tray3 > [snip] > > This is exactly something I was trying to avoid. > I was looking for a fully variable-based printcap, so I don't have to > edit it whenever there's a change on the Windows side (New IP for > existing box, new box, whatever...). Is this possible? >
OK. The problem is that you want to do two orthogonal things: - redirect the job to a printer according to printer name - modify the job according to printer name At the current time, I do not have hooks in LPRng to do both at once. You can redirect the job, set options for ifhp, or process the job, but not all at once in one process. You can do this, but you will need to use the next/current LPRng release. In this release, the 'incoming_control_filter' now allows you to specify a new destination. I will document this and publish it on the mailing list. Patrick Powell Astart Technologies [EMAIL PROTECTED] 6741 Convoy Court Network and System San Diego, CA 92111 Consulting 858-874-6543 FAX 858-751-2435 LPRng - Print Spooler (http://www.lprng.com) ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
