1748169 Members
4224 Online
108758 Solutions
New Discussion юеВ

printing from tray2

 
SOLVED
Go to solution
Jim_beam
Occasional Contributor

printing from tray2

I need to print using lprng specifically to tray 2 from printer model HP LaserJet 8150DN. I tried using :

banner "test" | lp -d abc12b -o A4 -o tray2

but still prints from tray1. What is the command do i use to print from tray 2?
3 REPLIES 3
Matti_Kurkela
Honored Contributor
Solution

Re: printing from tray2

Some HP printer model scripts will print out a list of supported "lp -o ..." options if you run this command:

lp -d abc12b -ooptions
But since you say you're using LPRng instead of the standard HP-UX print spooler, the standard HP model scripts might not be used at all. In that case, the standard options to the "lp" command you see in any HP-UX documentation will not be applicable.

If you're using the "ifhp" filter that comes with the LPRng distribution, the correct option would be "intray2".

http://www-it.desy.de/systems/services/printing/howto/IFHP-HOWTO.html#AEN1436

The native printing command of LPRng is "lpr", not "lp". I would test with it first:

banner "test" | lpr -Pabc12b -Z intray2

Once this works, you can try with LPRng's "lp" compatibility layer. You may have to configure LPRng's lp option translation first:

http://www.lprng.com/LPRng-Reference/LPRng-Reference.html#AEN3834

MK
MK
Jim_beam
Occasional Contributor

Re: printing from tray2

thanks for your response

but how do i set that printing to this queue specifically goes to tray2 in /etc/printcap for instance

abc12b :
:tc=.jetdirect_hp5si
:cm=HP LaserJet 8150DN
:lp=abc12%9100
Jim_beam
Occasional Contributor

Re: printing from tray2

did not receive feedback from 2nd question will create a new thread.