1830377 Members
2680 Online
110001 Solutions
New Discussion

printer setup

 
Hoey
Occasional Advisor

printer setup

Hi all
Our client has a lexmark optra s1250 laser printer. Recently, when it prints from a unix application, it has its left margin cut off. When I looked at the script, it says lp -s -onb -o12 -olandscape -olpi8 -otl66.

Can anybody tell me if the script is ok and also what do those -o (options) means. Is there any documentation that can tell me every option available to the lp command, I tried to look at man lp, doesn't tell me much.

Thanks in advance
6 REPLIES 6
Ravi_8
Honored Contributor

Re: printer setup

Hi,
you can look into the document "setting up printer on HP-UX" which is supplied by HP.
never give up
Hoey
Occasional Advisor

Re: printer setup

Hi ravi
I don't have the manual, do you know if there is some documents on-line?

thanks
Rainer von Bongartz
Honored Contributor

Re: printer setup

Try this

http://www.docs.hp.com/hpux/onlinedocs/B2355-90701/B2355-90701.html

and look at chapter 7
Administering a System:
Managing Printers, Software, and Performance
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Jordan Bean
Honored Contributor

Re: printer setup

`lp -s -onb -o12 -olandscape -olpi8 -otl66`
can be condensed to
`lp -s -o'nb 12 land lpi8 tl66'`

-s suppresses stdout
-o passes an interface specific option to the interface script in /etc/lp/interface

nb is the no banner option
12 for 12 char per inch
land for landscape
lpi8 for 8 lines per inch
tl66 for 66 lines per page (text length)

Try lp -o'options' to get a list of interface options.

How much of the left margin is dropping off? If just one character, try adding 'lm1 rm175' to the list of options.
Hoey
Occasional Advisor

Re: printer setup

Hi guys, thanks for the help

I used -o14, it should print 14cpi. But it printed 11cpi. Any idea how I can set it to print 14cpi.

Thanks in advace
David W Damon
New Member

Re: printer setup

The -o options for the individual printer models are in the interface scripts under /etc/lp/interface/{printername}. If the interface script is a generic remote or local printer interface, then maybe you could find an interface for the printer on the internet. You could use a BSD style interface script with few modifications.

Hope this helps.