Operating System - HP-UX
1847892 Members
1615 Online
104021 Solutions
New Discussion

Re: Staircase problem by printing

 
Johan den Boer
Occasional Contributor

Staircase problem by printing

Hello,

I have a problem by printing to a xerox printer. I need a script to translate a
LF to a CR/LF. Has anyone a script ?

Thanks,

regards

Johan den Boer
6 REPLIES 6
Animesh Chakraborty
Honored Contributor

Re: Staircase problem by printing

Hi,
This link may help you.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x52e0660142b2d5118ff10090279cd0f9,00.html


Best of luck
Animesh

Did you take a backup?
Andreas D. Skjervold
Honored Contributor

Re: Staircase problem by printing

Hi
The HP printers have a printer setting to do this translation automatically (add CR to LF). I do not know if the Xerox have, but check the manual to see if it does.

Andreas
Only by ignoring what everyone think is important, can you be aware of what everyone ignores!
Eugen Cocalea
Respected Contributor

Re: Staircase problem by printing

Hi,

Filter the printing command through 'ux2dos'.

E.
To Live Is To Learn
A. Clay Stephenson
Acclaimed Contributor

Re: Staircase problem by printing

Hi:

Onr very simple solution is to simply filter through awk within your interface file; nothing more than this:
awk '{printf("%s\r\n",$0)}'

If it ain't broke, I can fix that.
Darrell Allen
Honored Contributor

Re: Staircase problem by printing

Hello,

A number of printers have a setting to translate the LF to CR/LF if they sense the print file is an ascii file. If you don't find that then I believe Eugen's suggestion to use ux2dos is a good one. Do something like ux2dos file | lp -dprinter

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Shannon Petry
Honored Contributor

Re: Staircase problem by printing

Because "lpr" is a wrapper, usually I just manually add the ux2dos command into the pipe and tell users to use lpr instead of lp when printing text.

Regards,
Shannon
Microsoft. When do you want a virus today?