Operating System - HP-UX
1823415 Members
2643 Online
109655 Solutions
New Discussion юеВ

How to use lp to print to a different paper tray

 
Preet Dhillon
Advisor

How to use lp to print to a different paper tray

I'm trying to use lp to print to tray 3 of my Laserjet 5si printer. I've tried the following command :

lp -dprintername -otray3 /etc/motd

But the output still comes out of tray 2 on my printer.
Does anyone know how I can use lp to print to tray 3 ?

Many thanks in advance, people :)
Nothing succeeds like excess
3 REPLIES 3
Thomas Pohlen
Advisor

Re: How to use lp to print to a different paper tray

Hi,

see /etc/lp/interface for printer options.

source man lp

HTH

Regards
Be patient
eran maor
Honored Contributor

Re: How to use lp to print to a different paper tray

Hi

Here are the answers to your questions:

1. Use the following command to print to a specific tray:

$ lp -d[printer] -otray2

--AND--

2. The -o options are listed in your printer's model script in
/var/spool/lp/interface.

For JetDirect printers, look at the original script under
/var/spool/lp/interface/model.orig to identify the script on
which it is based. Once you identify the script, see the
appropriate man page. You can find this information by
searching the script for the term man page
love computers
Stefan Schulz
Honored Contributor

Re: How to use lp to print to a different paper tray

Check if the -otray option is supportet with your interfacescript. It should be if you use JetAdmin.

Make sure your printer isn't set up as a raw printer. With a raw printer all -o options are ignored.

If everything fails you can still include the necessary PJL command in the printfile.

Hope this helps. Stefan
No Mouse found. System halted. Press Mousebutton to continue.