Operating System - HP-UX
1833762 Members
2521 Online
110063 Solutions
New Discussion

Printing esc sequences with lp

 
SOLVED
Go to solution
George Doller
Frequent Advisor

Printing esc sequences with lp

I am trying to print using lp, a file that has the following esc seq. I am running HPUX 11.0 to a laserjet 5si printer with jetdirect. When I run the file to this printer from either NT or DOS it prints, but when I go through HPUX I get the 1st line then a blank page and it stops. If I remove the esc seq the file prints, but not correctly. here is the esc seq.
^[E^[(0N^[&l8D^[&l0E^[&l88F^[(s12H^[&l-3Z
^L
Any help would be greatly appreciated!!!
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: Printing esc sequences with lp

Hi George:

You probably need to add the -o binary argument to your lp command although you need to check your particular interface file for the correct option. It's probably -o binary but the file could have been modified.
If it ain't broke, I can fix that.
Rodney Hills
Honored Contributor

Re: Printing esc sequences with lp

I think you need to add -oraw to the lp command, so the print driver script will pass the file through as is.

-- Rod Hills
There be dragons...
George Doller
Frequent Advisor

Re: Printing esc sequences with lp

I've tried both the -o binary and -oraw and I still get 1 line, a blank page and thats it.
thanks
Jeff Schussele
Honored Contributor

Re: Printing esc sequences with lp

George,

Make sure the printer is set to CR/LF in it's control panel - you can also telnet into it to set this.

If it's just LF it'll step right off the page.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
George Doller
Frequent Advisor

Re: Printing esc sequences with lp

Where is the CF/LF on the control panel of a laserjet 5si. I just went through all the panels and I did't find it.
Thanks
Jeff Schussele
Honored Contributor
Solution

Re: Printing esc sequences with lp

George,

There are slight differences between HP models. BUT I believe you'll find it in the "Printing Menu" of most all.

It may be labeled as "Append CR to LF - Y/N" OR it may be CR/LF - LF

Sorry I don't have a 5si here to look at.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
George Doller
Frequent Advisor

Re: Printing esc sequences with lp

laserjet 5si didn't have the cr=lf. I found a laserjet 8000 that did. I changed it and it printed. thanks
Now I just need to figure out how to force a cr on a laserjet 5si.
George Doller
Frequent Advisor

Re: Printing esc sequences with lp

Could you tell me what changing the cr=lf to yes will do for other stuff printing to this printer?
Thanks
Jeff Schussele
Honored Contributor

Re: Printing esc sequences with lp

George,

Here's a link to an HP Tech Doc dealing with 5si Control Panel Usage:

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=e115da1a19bdb0d16e/screen=ckiDisplayDocument?docId=200000057207844

As to your question on what this setting does to other print jobs - Should do nothing. Windoze sends CR/LF with it's jobs - UNIX doesn't.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!