Operating System - HP-UX
1833059 Members
2524 Online
110049 Solutions
New Discussion

printing command lp options

 
SOLVED
Go to solution
Pierre HERGOTT
Occasional Contributor

printing command lp options

Is it possible to select an output tray on an HP laserJet 5Si printer (or another) when printing from unix using (10.20) the command lp ?
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: printing command lp options


Yes, use the options ubbin or lbbin
Im from Palmerston North, New Zealand, but somehow ended up in London...
Pierre HERGOTT
Occasional Contributor

Re: printing command lp options

Hi

And in the case of printers with 2 front trays ?, can I choose the front tray 2 or 3 ?

Can I get the list of the lp command options anywhere ?

thanks
Vincente Fernandes
Valued Contributor

Re: printing command lp options

Look at "man lp". The man page has all the options for you.
Pierre HERGOTT
Occasional Contributor

Re: printing command lp options

thanks, i know the man but itsn't exhaustive enough
Stefan Farrelly
Honored Contributor
Solution

Re: printing command lp options


For your laserjet5 all the available options for that printer are listed in the file;
/usr/spool/lp/model/laserjet5Si

Take a look.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Bill Hassell
Honored Contributor

Re: printing command lp options

man lp gives you no information on -o options to lp. In fact it states that you have to read the interface script to figure out what the options might be. Hummmm...

About 10 years ago, we (the HP Response Center) requested the labs to provide a way to see the options without becoming a shell script expert and the result is the -ooptions
option. ALl the standard HP printer scripts support the form:

lp -dmyprintername -ooptions /etc/issue

for instance. Now the options page is simple and not necessarily complete but it is a godd starting point.

And to make things even better, JetAdmin software for managing HP network printers supplies man pages for the generic printer scripts such as net_lj5x (man net_lj5x).

For the most recent printers, get the latest JetAdmin software from the HP website and replace your old interface scripts with the
latest version of the net_lj**** scripts. These are stored in the subdirectory model.orig for JetDirect printers. The man pages in the JetAdmin software go into details about the various -o options.


Bill Hassell, sysadmin