1833776 Members
2035 Online
110063 Solutions
New Discussion

Re: Hi Printer problem

 
kamal_9
Super Advisor

Hi Printer problem

Hi
Can you pls tell me wht are the lines to be added in the printer conf file .for giving one carriage return and linefeed of the printer
5 REPLIES 5
ramkumar
Valued Contributor

Re: Hi Printer problem

I kindly can you provide few more details where it is serial printer or parralel printer and model whih your using . from your question it seems to be a serial printer . you can set it trhough printer's internal configuration also .
other wise you have to control escape charaters to give carriage return and linefeed .

for more information look into your model file /etc/lp/interface/
kamal_9
Super Advisor

Re: Hi Printer problem

Hi
Iam having printronix p5000 printer connected to network.thru printnet adatpter and. in hp box i configured as a remote printer .presently i enabled the carriage return and thelinefeed in the printer side .now its working fine with hpux.but due this iam facing problem with windows.in windows printout its skipping two line (one from the windows driver internal ∧ the other from the printer side ) so iwant to disable from the printer side and enable the carriage return in the hpux.Iremember some control codes are thr line 0x0d etc...
kamal_9
Super Advisor

Re: Hi Printer problem

Hi
Pls help me out . I want to know want entries to be made in /etc/lp/interface/ file for getting carriage return and line feed.

Fred Martin_1
Valued Contributor

Re: Hi Printer problem

Not sure this will put you in the right direction. I needed, for a certain model of printer, to have a Top-of-Form added after each print job. In the file:
/etc/lp/interface/

I added this line:

echo "\014\c"

But I think I could have done it this way:

echo "\f\c"

or just:

echo "\f"

Do a man echo, there's a list of controls, it shows \n for newline and \r for carriage return.

Putting this in the interface file means -every- print job gets it.
fmartin@applicatorssales.com
Anil_36
Occasional Contributor

Re: Hi Printer problem

Hi Guys,

I guess I have a similar problem printing through HP-UX 11i on Dataproducts LB600 line printer. It is connected to a printserver and it prints on just one line. I guess there is no CR at the end of LF, so I added CR to the LF through the printer console and also modified the printer interface file to include the echo "\n\r"
If another dot matrix printer is connected to this printserver (on same parallel port) it works just fine. Yes, initially the end-of-job problem got me stuck for a while on this DMP which was rectified after I used echo "\f\c"

Any suggestions and feedback are highly appreciated.

Cheers
Anil