Operating System - HP-UX
1753730 Members
4754 Online
108799 Solutions
New Discussion юеВ

condensed command line printing

 
SOLVED
Go to solution
Nancy Long
New Member

condensed command line printing

What is the command for condensed landscaped printing? I'm trying to write a script and this is what I've tried. (One part of the script is to print the report.)

lp -ocondensed -olandscape -dhplj40001 /home/myfile.txt

The landscape part works but I can't get it to print condensed.
7 REPLIES 7
Rodney Hills
Honored Contributor
Solution

Re: condensed command line printing

lp -oc

see /usr/spool/lp/interface/model.orig/your.printer

-- Rod Hills
There be dragons...
Deshpande Prashant
Honored Contributor

Re: condensed command line printing

Hi
Try
lp -oc -olandscape -d hplj40001 /home/myfile.txt

Thanks.
Prashant.
Take it as it comes.
Nancy Long
New Member

Re: condensed command line printing

I don't want to be a pest... both of your answers helped me a lot. BUT, (I don't know how to describe this) I need to scrunch it up.. what should only take one page is taking two. It's condensing from right to left but not top to bottom. Instead of coming back at you again, could you tell me a resource where I can look this up, I can't find info on it in the man pages or my unix books? the -oc worked great... thank you.
Rodney Hills
Honored Contributor

Re: condensed command line printing

If you are trying to get 132 column 66 line text output, then use the following-

lp -oc -ohsi9 -ovsi5 -otl66 yourfile

man net_lj4x

can tell you alot (a whole lot) on the options available for LaserJet printing.

-- Rod Hills
There be dragons...
Rodney Hills
Honored Contributor

Re: condensed command line printing

oh and
-olandscape

:)

-- Rod Hills
There be dragons...
Jeff Schussele
Honored Contributor

Re: condensed command line printing

Nancy,

Then you want something like

lp -o lpi=8 (6 lines per inch is default)

This value may be limited by the printer interface int the model dir.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Deshpande Prashant
Honored Contributor

Re: condensed command line printing

Hi
Try man net_ljx000
If your printer prints banner, options might be seen on banner.

To compress length use
#lp -oc -olandscape -olpi12 -d PRINTER

The value for lpi can be 6,12,16,24,48

Thanks.
Prashant Deshpande.
Take it as it comes.