Operating System - HP-UX
1823114 Members
3222 Online
109646 Solutions
New Discussion

lp issue - text file is getting truncated to 80 chars from 132 chars

 
Simon R Wootton
Regular Advisor

lp issue - text file is getting truncated to 80 chars from 132 chars

We are having a problem when printing from HP-UX 11 to a Windows printer designed to capture the Unix output.
The printer has been set up using SAM as a Remote Printer, and the Windows Server has a corresponding printer set up.
Using ‘lp –d RemotePrinter testfile’ does sent the output to the correct windows printer, but the resultant text file wraps any lines longer than 80 characters.
As our output can be up to 132 characters, this is causing a formatting problem.

How can we stop the text file starting a new line after 80 characters? Is is a Unix problem or a windows one?

All help rewarded !!

Simon
1 REPLY 1
OldSchool
Honored Contributor

Re: lp issue - text file is getting truncated to 80 chars from 132 chars

since you can't send formatting directives to a remote printer from the unix side, you must configure a printer queue on windows that will print 132 wide as it's default. this may involve such things as specifying landscape instead of portrait, different font size, etc....

then make that print queue the destination for your remote printer.

a better option, if avaialble, is to set the thing up as a jetdirect (network) printer.

Since you didn't specify mfg, model or interfaces available, I can't say whether that's a viable option or not