1838195 Members
3721 Online
110125 Solutions
New Discussion

Re: printing problem

 
SOLVED
Go to solution
Rgomes
Valued Contributor

printing problem

Hi All,

I am using hp-ux 11i. I have some files generating from billing application with extention of .dat. When we give print command from DOS, it's printing ok. But, when print command is given from hp-ux 11i server, it's printing inaccurately. Any idea?

Printer : HP laserJet 4050N, network printer.

File : test01.dat

Thanks in advance.

Richard
6 REPLIES 6
Niraj Kumar Verma
Trusted Contributor

Re: printing problem

Hi,

can you try using

# pr test01.dat |lp

it will print it to your default printer if set if not
export the LPDEST variable

=============================
==
# export LPDEST=
# pr test01.dat |lp


Regards
-Niraj
Niraj.Verma@philips.com
Bill Hassell
Honored Contributor

Re: printing problem

Unix and DOS are totally unrelated. If the test01.dat file is a PCL file that is fully formatted, you need to turn off the ASCII formatting with -oraw as in:

lp -oraw -dprinter test01.dat

Type extensions like .dat are meaningless to Unix so you have to explicitly handle specail cases.


Bill Hassell, sysadmin
RAC_1
Honored Contributor
Solution

Re: printing problem

also check ux2dos and dos2ux commands.
There is no substitute to HARDWORK
Rgomes
Valued Contributor

Re: printing problem

Hi Niraj, Bill and Anil,

Thanks to you all, I will do as you said( just now I am out-off site), share with you with my results.

Thanks

Richard
Rgomes
Valued Contributor

Re: printing problem

Hi All,

Now I can print the test01.dat file. Thanks All, specially Anil, ux2dos helped me.

But can you tell me, how can I change the ux format to dos( not in this format: ux2dos file1 file 2 file3 > file) of a large number of files, say at a time 40/50 thousand? you know it's a billing application.

Thanks again

Richard
Rgomes
Valued Contributor

Re: printing problem

Hi All,

Now I can print the test01.dat file. Thanks All, specially Anil, ux2dos helped me.

But can you tell me, how can I change the ux format to dos( not in this format: ux2dos file1 file 2 file3 > file) of a large number of files, say at a time 40/50 thousand? you know it's a billing application.

Is there any thing to do in the printer(HP LJ 4050N) settings( PCL?)? or in the Model script file?

By changing any parameter of above 2,is it possible to bypass this format changing( ux2dos)of files?

Thanks again

Richard