Operating System - HP-UX
1836377 Members
2196 Online
110100 Solutions
New Discussion

lp command - lines per page in landcape

 
Andy McConnell
New Member

lp command - lines per page in landcape

I'm trying to print a text file in landscape on a Laserjet 4si from a HP-UX 10.20 box, and I can't get the thing to stop printing just 2 lines on every other page.
The printer defaults to 45 lines per page in landscape, but seems to only fit 43 - hence the two spare on the following page.
I've tried using "-o lt43" but it makes no difference. I've tried piping the file through pr first to set the page length, but the subsequent lp command seems to overide this. (If I include the "-o pr" option it prints full pages but omits lines.)
Any assistance to enable me to get multiple, complete, pages of landscape text would be very welcome.
If only road sweeping was better paid!
2 REPLIES 2
Lasse Knudsen
Esteemed Contributor

Re: lp command - lines per page in landcape

Would 'a2ps' do the job for you ?
In a world without fences - who needs Gates ?
CHRIS_ANORUO
Honored Contributor

Re: lp command - lines per page in landcape

Hi Andy,

Use this command "lp -d(printername) -o eolwrap filename".
This should do the work.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.