Operating System - HP-UX
1845378 Members
1842 Online
110244 Solutions
New Discussion

Printing problems from HP-UX to NT

 
SOLVED
Go to solution
B. Boxma
Advisor

Printing problems from HP-UX to NT

We want to print all or documents via a Windows NT 4.0 print server. To do this, we defined a remote printer on HP-UX. This works, except for some documents generated from one specific application.
This application generates plane text files with some PCL control characters at the beginning. Th output on the printer only shows the first line of text. When i manually put the ^M character at the end of each line of the job (in de request-folder) it prints out OK.
Is there a way to solve this?
8 REPLIES 8
John Palmer
Honored Contributor

Re: Printing problems from HP-UX to NT

What method does your interface script (/etc/lp/interface/ use for sending data to the NT server? Is it 'rlp', 'hpnpf' or something different?



Rita C Workman
Honored Contributor

Re: Printing problems from HP-UX to NT

Just a thought...is the printer set up for PCL??

John Palmer
Honored Contributor

Re: Printing problems from HP-UX to NT

One possible solution is to configure the printers to 'Append CR to LF'. This is an option for HP Laser printers.
Anthony deRito
Respected Contributor

Re: Printing problems from HP-UX to NT

What may be going on is the EOL/EOF difference. Windows/NT uses an ASCII carriage return (^M) and then a line feed (^J) at the end of each line. UNIX uses only the ASCII line-feed character (^J) at the end of each line.

If you use the ux2dos command on the UNIX file, it will convert to the required control characters that NT will understand.

#ux2dos unix_file > nt_file

Tony


B. Boxma
Advisor

Re: Printing problems from HP-UX to NT

John,
My interface script uses rlp for sending data to the NT server.
Andreas Voss
Honored Contributor
Solution

Re: Printing problems from HP-UX to NT

Hi,

if it is possible to modify the print command of your application try:
ux2dos | lp .....
This will add the CR's

Regards
John Palmer
Honored Contributor

Re: Printing problems from HP-UX to NT

rlp is a problem because it is not easy to manipulate the data file supplied to the lp interface script.

Can you use Andrew's solution or reconfigure the printers at add as I mentioned above?
B. Boxma
Advisor

Re: Printing problems from HP-UX to NT

Thank you all for looking at this problem.
I solved it by using the command "ux2dos" which works fine.
I couldn't find how to set the printer to add linefeeds (my printer is a laserjet 4).