Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stair-step printing

Status
Not open for further replies.

Tirvine

Technical User
Jul 29, 2005
1
CA
Help me please

Im trying to fix a stair-step printing issue with SCO Openserver 5.0 and a HP Laserjet 4200n network printer - everything ive tried so far has not worked and I'm having a hard time finding any information on this - Please be kind im new to the unix scene
 
Issue <esc>&k2G at the beginning of the print job. This will instruct the printer to add a CR at the end of each line.

This would normally be taken care of by the printer interface script.





Jim Asman
 
Text files in SCO use LF only for line termination. In DOS, the line termination is CR/LF. This is why you are getting the stair-stepped output.

The most common way to resolve is by using the correct (or modified) printer interface file. You need one which will send the following code before the job:

<esc>&k2G

Examples would include "crnlmap" and "HPLaserJet".
Or, you can add that feature to your existing interface file (found in /usr/spool/lp/admins/lp/interfaces/model.orig) like so:

(Add this early in the script)
code="\0033&k2G"

(Add this right before the file is output)
echo -n "$code" 2>&1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top