1833376 Members
3106 Online
110052 Solutions
New Discussion

HP-UX Printing Problem

 
SOLVED
Go to solution
yyghp
Super Advisor

HP-UX Printing Problem

OS: HP-UX 11.11 ( PHCO_29209 loaded )

I have problem to use command line to print out a plain text file in correct format, like the file '/etc/passwd', etc.( I have tried so many pain text files but failed to print out good format paper, and I have to use command line to schedule my printing job )

For example, when i wanted to print out /etc/passwd with: lp -d /etc/passwd
or lp -d -o letter /etc/passwd

root:*:0:3::/:/sbin/sh
daemon:*:1:5::/:/sbin/sh
bin:*:2:2::/usr/bin:/sbin/sh
sys:*:3:3::/:
adm:*:4:4::/var/adm:/sbin/sh
uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico
lp:*:9:7::/var/spool/lp:/sbin/sh
...

The result I got is: ONLY 1 letter size paper

root:*:0:3::/:/sbin/sh
daemon:*:1:5::/:/sbin/sh
bin:*:2:2::/usr/bin:/sbin/sh
sys:*:3:3::/:

(NOTE: those s stand for blank, because I don't know how to use real in this forum)
(Only 4 lines were printed, and each line was aligned to the right side, ALL other lines are missing)

However, if I change the Printer setting on the printer its own:
PCL EMUL MENU -> Auto CR after LF = ON
Auto LF after CR = ON

( Default: both = OFF )
the problem above was solved.
But I found that it rose a problem when I print plain text file on VMS to the same printer. So, I have to keep the printer setting to the default value: OFF

Anything I can do on HP-UX to format the printout ? like some configuration file or char mapping table ?
Thanks!
10 REPLIES 10
Rick Garland
Honored Contributor

Re: HP-UX Printing Problem

You are "stairstepping".

Missing a CR and/or LF

Is this a remote printer to a WIN system? If so check the WIN system and see how the printer is configured on the WIN system.
yyghp
Super Advisor

Re: HP-UX Printing Problem

Yes, stairstepping !

It's a network printer.
Is there something I can do on HP-UX side ?
Thanks!
Rick Garland
Honored Contributor

Re: HP-UX Printing Problem

This is a HP printer?

If so, go into the firware menu on the printer and make the appropriate changes for LF and CR on the printer.

If added through jetadmin or hppi, there is no need to do anything there.

Devender Khatana
Honored Contributor

Re: HP-UX Printing Problem

Hi,

Sorry, but I do not think you can do anything at HPUx side related to this. This is related to hardware and you will have to change is there. Does not your printer support multiple settings ? Load first when printing one thing and second when printing other thing.

HTH,
Devender
Impossible itself mentions "I m possible"
yyghp
Super Advisor

Re: HP-UX Printing Problem

we have different kind of prints: such as Canon, Lexmark...

Because we also need to use those printers for VMS printouts, if I change those 2 setting on the printers to be ON, then the format of VMS printouts will have problem...
So, I hope I can do something on HP-UX side to make it work, with right format.

Thanks!
yyghp
Super Advisor

Re: HP-UX Printing Problem

Hi Devender,

What do you mean multiple setting ?
I don't think the printers can detect the remote O/S and change the setting automatically.

I wonder whether there is a character mapping table I can use on HP-UX, which could solve the problem in another way...

Thanks!
Geoff Wild
Honored Contributor
Solution

Re: HP-UX Printing Problem

How was the printer setup on HP-UX? HPPI?

Lexmark - you need to download and Install Markvision - and use that to install the printer(s) on HP-UX:

The file to download from http://drivers.lexmark.com/ is DRIVERS-HPUX1X.PKG.Z

uncompress it then swinstall it.

It will install "Lexmark Enhanced Printer Drivers Package" and "Lexmark Screen Fonts Package". After completion, run: /opt/lexmark/setup.print (use the default of bin for Administrative group, and install fonts as an additional font directory.

Then use lexprt program to add queues.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
yyghp
Super Advisor

Re: HP-UX Printing Problem

hi Geoff,

I tried that long time ago and it didn't work, that's why finally I had to change the PCL setting on the printer side. But there is a printer share issue with VMS system now.

I think there must be a file that takes care of the "CR" and "LF"...

Thanks!
Rick Garland
Honored Contributor

Re: HP-UX Printing Problem

What I have found to work (most of the time, not all of the time) is to use an older driver with these non-HP printers. Example, setup using the HPIIIi drivers.

Go to the lowest common denominator
Ermin Borovac
Honored Contributor

Re: HP-UX Printing Problem

Try using ux2dos ... it will map LF to CR/LF.

$ ux2dos | lp