Operating System - HP-UX
1830042 Members
2173 Online
109998 Solutions
New Discussion

print landscape with lp...

 
SOLVED
Go to solution
Jonathan Caplette
Regular Advisor

print landscape with lp...

Hi guys...

If I wanna print landscape with the command "lp", what is the option.... is it "lp -d -olandscape " or what??? I haven't seen this option in the man page...

Thanks
Jonathan
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: print landscape with lp...

Hi Jonathan,

The answer is - it depends. -o landscape is the typical argument but to know for sure, you need to examine the interface file.

Cd to /var/spool/lp/interface. The should be an interface file for each printer with the same name as the queque. Examine this file with a text editor to find your option. You may need to look in /var/spool/lp/interface/model.orig for your interface file as well. Sometimes the interface file in /var/spool/lp/interface calls the one in model.orig.

It is quite possible the -o landscape will work for a given printer but another printer might require a completely different argument. I would definitely try -o landscape first - that works for the vast majority of HP printers.


Regards, Clay
If it ain't broke, I can fix that.
Sanjay_6
Honored Contributor

Re: print landscape with lp...

Deshpande Prashant
Honored Contributor

Re: print landscape with lp...

HI
I have been using #lp -d landscape from my HPux11.00 machine for the laserjet 8000 printers for some time with out problems.

Thanks.
Prashant.
Take it as it comes.
William Tidwell
Occasional Advisor

Re: print landscape with lp...

I've had similar problems but with remote printers hung off of W2K servers. The only way I've found to print landscape on these is to use a script that will cat the necessary escape codes onto the front of the file. Is there an easier way for remote printers?
Frank Slootweg
Honored Contributor

Re: print landscape with lp...

As others have mentioned, it depends on the specific model script and the specific printer.

What often works, especially for somewhat modern/'powerful' HP printers is "lp [-oyb] -ooptions file". I.e. there is an option which is called "options" and that *prints* a summary of the most important options. Depending on the model script, the "-oyb" part may or may not be neccessary, hence the square brackets in my example.
Bill McNAMARA_1
Honored Contributor

Re: print landscape with lp...

Put a space after your -o

I like to print out ioscans with the following:

ioscan -fnk | lp -o nb -o 12 -o landscape

The -o 12 is a smaller font so that the data doesn't cut at line end.

But this is printer specific..
I had a dj540 and a dj600 using these options.

Later,
Bill
It works for me (tm)
Deshpande Prashant
Honored Contributor

Re: print landscape with lp...

I'm sorry Jonathan for my wrong answer in earlier post.
It should be
# lp -d -o landscape

Thanks.

Prashant.
Take it as it comes.
Jonathan Caplette
Regular Advisor

Re: print landscape with lp...

Thank you all... It worked with -o landscape option... :)

ciao!