> From [EMAIL PROTECTED] Fri Jan 4 23:54:13 2002 > Date: Sat, 5 Jan 2002 01:56:55 -0500 > From: Paul Michael Reilly <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: LPRng: Debugging a printing problem > > I have an networked HP LaserJet/5m printer with a duplex unit > attached. I'm using RedHat Linux 7.2 on the client trying to use the > printer to print two sided documents. While RHL7.2 does not come with > ifhp I installed an RPM of ifhp-3.5.2.1. > > I get the impression that if I set up the input and provide the right > switches for ifhp then I should be able to drive the job directly. So > far the documentation hasn't made it obvious how to do this such that > I can debug the problem(s). > > So I'm looking for a pointer/reference to help accelerate getting to a > fix. > > Thanks, > > -pmr
There are several ways to do this, but the following is the simplest: lp: :sd=/var/spool/lpd/%P :ifhp=model=hp5m :filter=/..../ifhp :lp=/.... Command: lpr -Zduplex Description: We have LPR set the -Z duplex option when it generates the job IFHP is passed it and sets the PostScript/PCL/PJL commands for the printer Note: you might want to add OR: (This is REALLY tricky): lp|duplex: :sd=/var/spool/lpd/%P :ifhp=model=hp5m :filter=/..../ifhp -T%Q :lp=/.... Command: lpr Description: The queue name is appended as an option to the filter command... OR: duplex: :sd=/var/spool/lpd/%P :append_z=duplex :[EMAIL PROTECTED] lp :sd=/var/spool/lpd/%P :filter=/..../ifhp -T%Q :lp=/.... The 'bounce queue' causes a -Zduplex option to be added to the options and then the job forwarded to the printer. These are all I can think of in the few minutes I was typing this... You can also use a script. See the 'Printing Cookbook' in the LPRng distribution for more ideas. Patrick Patrick Powell Astart Technologies, [EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D, Network and System San Diego, CA 92123 Consulting 858-874-6543 FAX 858-279-8424 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. -----------------------------------------------------------------------------
