From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97061221407596.tru64-unix-managers.marc@archive.invalid> From: Andrew Fysh Date: Tue, 03 Oct 2000 22:30:14 +0000 To: tru64-unix-managers Subject: Summary: lpr and Paper Tray Selection? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97061221407596 This is a delayed summary as we had difficulty finding the solution to the problem. After 2 onsite visits and several phone calls from Xerox technicians to our remote site, we found that the HP PCL settings had a default tray of A3. This was overriding all other settings from our printcap entry, filters, lpr commands, and NT servers. Warning: if you have any control over what printers are installed in remote sites, choose a vendor that you are familiar with. We had not been consulted, had not seen the printer, and had not configured any Xerox printer before, so did not know the menus on it. Another good suggestion that may be useful to someone came from Alex Harkema as below: after a lot of trial/error I succeeded to do this (on a hp4050) A lot of info I got from this list, so you may already have solved the problem... The solution: use 2 queues. The queue named in de lpr command sends data through a filter, which sends the data to the 'standard' queue. # cat /etc/printcap ---- cut here ---- # Standard queue-to-printer lp71|71:\ :lf=/usr/adm/lp71err:\ :lp=:\ :rm=lapr003.avebe.nl:\ :rp=text:\ :sh:\ :sd=/usr/spool/lpd71: # UPPER tray printing lp72|72:\ :if=/var/spool/lpd72/pclfilter:\ :lf=/usr/adm/lp72err:\ :lp=/dev/null:\ :sd=/usr/spool/lpd72: # LOWER tray printing lp73|73:\ :if=/var/spool/lpd73/pclfilter:\ :lf=/usr/adm/lp73err:\ :lp=/dev/null:\ :sd=/usr/spool/lpd73: ---- cut here ---- # cat /usr/spool/lpd72/pclfilter /bin/cat /var/spool/lpd72/pcl - | lp -d lp71 # cat /usr/spool/lpd73/pclfilter /bin/cat /var/spool/lpd73/pcl - | lp -d lp71 In the files /usr/spool/lpd72/pcl and /usr/spool/lpd73/pcl are the escape codes: + then press and type the code: &l1H - tray 2 (upper) &l4H - tray 3 (lower) &l2H - manual feed for example: In the file /var/spool/lpd72/pcl is: ^[&l1H nothing else. Get the correct escape char by pressing + then press . Then there is the ampersand sign, a lower letter l and a 1 (one) for upper tray printing. Hi, Can anyone tell me if it is possible to select a specific paper tray on a Xerox printer using lpr. I am sending print jobs from Unix to an NT server that has the default tray set to tray 1 (A4). The print jobs keep sourcing from tray 3 (A3). The printer is a Xerox DocuCentre. My printcap entry is below: printername:\ :lp=:NTservername:rp=NTsharename:\ :lf=/usr/adm/printername-errs:\ :sd=/usr/spool/printername: Regards, Andrew Fysh Business Systems Support ALSTOM INFORMATION TECHNOLOGY Phone: +61 2 8875 0500 Direct: +61 2 8875 0595 Fax: +61 2 8875 0599 Mobile: 0418 143 190 E-mail: Andrew.Fysh@it.alstom.com.au Web: http://www.it.alstom.com.au