Operating System - HP-UX
1833479 Members
2472 Online
110052 Solutions
New Discussion

lp printing - line truncation

 
SOLVED
Go to solution
Matthew Christie
Occasional Contributor

lp printing - line truncation

There must be a really, really simple solution to this problem and I'm hoping someone can save me an enormous amount of time in sharing their solution with me.

I have a large number of files I need to print. The lines are rather long, however, and when the lp job is sent to the laser printer it truncates the lines in the same manner as 'cat'.
What suggestions do people have for enabling line wrapping for this process?

-Matthew
6 REPLIES 6
Andreas Voss
Honored Contributor
Solution

Re: lp printing - line truncation

Hi,

try this option:
lp -o eolwrap

Regards
Ralph Grothe
Honored Contributor

Re: lp printing - line truncation

Maybe before you send it to the print queue you could pipe it through "pr".
The pr command has many formatting options.
Have a glance at pr's manpage.
Madness, thy name is system administration
Matthew Christie
Occasional Contributor

Re: lp printing - line truncation

Thanks Andreas, that did the trick. "eolwrap" isn't mentioned in the lp man page - do you know why?

-Matthew
Andreas Voss
Honored Contributor

Re: lp printing - line truncation

Hi,

you could also wrap per fold command:
fold | lp

Regards
Matthew Christie
Occasional Contributor

Re: lp printing - line truncation

Andreas, 'fold' works great too! Thanks awfully.
Andreas Voss
Honored Contributor

Re: lp printing - line truncation

Hi,

generally special lp options are not listed at man lp.
Instead it depends on the interface model script choosen at queue creation time.
To see available options look at /var/spool/lp/interface/ or for all other model scripts at /usr/lib/lp/model

Regards