Operating System - HP-UX
1822544 Members
2883 Online
109642 Solutions
New Discussion юеВ

How to apply a CR/LF Filter on HPUX Print Queues

 
Alzhy
Honored Contributor

How to apply a CR/LF Filter on HPUX Print Queues

We are using Windows Served PRINT Queues on our HP-UX systems.. All were fine except now that they are printing text files.. We've managed to address orinetation issues by way of separator pages on the Windows side but we are experiencing that "staircase" effect because of the need for the text file to have CR's added ...

My Q.. how does one set up lp filters in HP-UX (or SYSV printing environment in general)?

Thanks!
Hakuna Matata.
6 REPLIES 6
Jeff Schussele
Honored Contributor

Re: How to apply a CR/LF Filter on HPUX Print Queues

Hi Nelson,

I never bother.
Just go into the ptr menu & set
LF=LF+CR

It won't interfere with Winblows jobs & it'll take you 15 seconds.

My $0.02,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Alzhy
Honored Contributor

Re: How to apply a CR/LF Filter on HPUX Print Queues

Jeff,

Thanks but I have no idea what you're asking me to do.. is it modifying the separator page..?
Hakuna Matata.
Jeff Schussele
Honored Contributor

Re: How to apply a CR/LF Filter on HPUX Print Queues

No - on the printer itself.
On an HP LaserJet 5000N it's in the "Printing Menu" & it's titled "Apend CR to LF = YES/NO"

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Alzhy
Honored Contributor

Re: How to apply a CR/LF Filter on HPUX Print Queues

Thanks but it will not fly... we have a variety of printers .. HP's, QMS, Xerox.. all of them understands PCL and some postscript...

I will need to have a Filter approach..
Hakuna Matata.
Mark Grant
Honored Contributor

Re: How to apply a CR/LF Filter on HPUX Print Queues

In theory, all you have to do is edit /var/spool/lp/interface/ and edit the script to add a ^M to the end of each line with sed. This depends a bit on the interface file you are using beacuse nowadays, it isn't so easy and in some cases not possible. Gone are the days of serial printers when a quick "sleep 1000
Never preceed any demonstration with anything more predictive than "watch this"
Chris Vail
Honored Contributor

Re: How to apply a CR/LF Filter on HPUX Print Queues

Use ux2dos when printing:
ux2dos myfile|lpr


This'll fix it right up.


Chris