1834324 Members
3282 Online
110066 Solutions
New Discussion

Re: lp commands

 
SOLVED
Go to solution

lp commands

I would like to print a file in landscape instead of the default portrait. We are utilizing remote printers. I can currently use the lp command with a -dqueue_name to send the output to a printer. Can I add options to the lp command to cause the output to print in landscape, etc. Where are the options defined?

The target printers are HP printers.
Roger G. Vincent
7 REPLIES 7
Marcel Boon
Trusted Contributor
Solution

Re: lp commands

Hi,

See "man lp" here you can find the options
for "lp". For Specific options you have to look for the /etc/lp/interface/printerscript.

Best regards,
Marcel
See the man pages

Re: lp commands

Thanks for the info. I was aware of the man on lp. I was hoping that someone has tried doing something similar and could give me specific options.
Roger G. Vincent
Andreas Voss
Honored Contributor

Re: lp commands

Hi,

the common lp option for landscape is

-o landscape

This only works if your printer was setup with jetadmin where you can look at /etc/lp/interface/model.orig/ for additional options.

Regards
Stefan Schulz
Honored Contributor

Re: lp commands

To print in landscape use:

lp -d -olandscape

This option is supported on most printers. Which options are available depends on the modelscripts you are using. Have a look at the scrips stored in /etc/lp/interface/ and/or /etc/lp/interface/model.orig if you are using JetAdmin.

If you are using a printer set up as a "raw" model then forget about the options. Raw models don't support the options.

Hope this helps. Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Bill McNAMARA_1
Honored Contributor

Re: lp commands

ioscan is a good example:

Note: NO SPACES

ioscan -fnk | lp -onb -o12 -olandscape

nb= No banner (hi I'm root)
12= font size pixel width
...

Later,
Bill
It works for me (tm)
Stefan Schulz
Honored Contributor

Re: lp commands

Another informationsource:

If you have JetAdmin installed (you should when using HP printers) you could do:

man net_lj4x
man net_lj5x

there you will find a description of almost all options available - if you are using JetAdmin. Like i said, the options depend on the modelscripts you are using.

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
rbiorn
Advisor

Re: lp commands

Maybe you find somthing here:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd1b56af52b04d5118fef0090279cd0f9,00.html

Regards
Ragnar
"You cannot achieve anything beyond your wildest dreams --- if you don't have any wild dreams"