Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HP Printers

Status
Not open for further replies.

fathead

IS-IT--Management
Apr 13, 2002
154
does anyone know where I can find a lint of HP printers that will work in Unix???
 
the hp4100 are supposed to work
I had no problem getting it to print portrait
but I have not been able to get them to print landscape on either RH Linux or Sco unix
 
The question is "will work for what"?
Printing in unix is application based.
Print serving is os based.

There are certain printers (mostly inkjet based) that do not have the "smarts" to deal with a print job sent to them.
It is the same as some of the "winmodems" that only work with M$.
 
For landscpae printing, if you refer your HP printer manuall you can find out a control charachter for converting 90" the output ( protrait to landscape vice-versa) and insert that charachter before the document.
 
I have several HPIIs and IIIs and a 520 inkjet that are or have been on Xenix or Unix and a customer with a 5.
As Stan says, more an issue of whether drivers need to be used in an operating system to get it to print.
Anything that will emulate a HPII will work. And since that was the most common emulation for years I suspect that it will still be matched. Ed Fair
unixstuff@juno.com
Any advice I give is my best judgement based on my interpretation of the facts you supply. Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.
 
Backer67 --

that is the response I got from HP tech. support but how will I work with the escape characters??


Thanx
 
You go into the interface script and insert it into the data stream before the file is catted and insert the standard code after the file is catted.

Or you do the same thing in model script so anytime you regen the interface script it is already installed.

Or create a new model with the same name but with an L appended to indicate landscape. Ed Fair
unixstuff@juno.com
Any advice I give is my best judgement based on my interpretation of the facts you supply. Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.
 
I am talking about doing an lp from the command line because the application is an home grown system that when the users click on print the application basicly runs the lp command with various options for some reason I was not able to get the options to work on my HP printers thats when HP tech support told me to use the escape chars.
but i am not sure how to go about it I saw Ed Fair's post but I really hate messing with system files unless I can't get around it.

would there be a way to create a script myprint (or something like that) and have it some how send the escape sequence to the printer before it executes the lp command ??

thank you
 
You are talking about inserting 1 line before and 1 lines after the cat instruction in the interface script.

And you do hardcopy before you do it so you know what you need to restore if it screws up. And worse case is to reload the driver from print manager.

What do you want it to do? Landscape? Font change? Font size change?

And what version of OS? Ed Fair
unixstuff@juno.com
Any advice I give is my best judgement based on my interpretation of the facts you supply. Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.
 
Ed-

what I was hoping to do was to write a small script :

echo {escape char} > {filename}
cat {doc to be printed} >> {filename}

lp -d prodhp {filename}

would something like this work ??

the interface script is just pretty long and looks scary

Thank you
 
Generally the application would deal with the page formatting issues; however, does your interface script not contain a -o option for landscape? e.g.,

lp -d prodhp -o land {filename}

Jim Asman
jlasman@telus.net
 
eanda10,
No , it probably wouldn't work. The problem is that the interface script following will overwrite whatever changes you have stored.
Follow through on what Jim added. If you are on a late OS you will have landscape as an option. Or you may have to switch models to get it, but writing the interface script is worse than re-inventing the wheel. Ed Fair
unixstuff@juno.com
Any advice I give is my best judgement based on my interpretation of the facts you supply. Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.
 
the whole problem started when we added the HP printers to the network the printers would just ignore the -oland flag
that is when I contact HP's tech support who said I have to play with escape characters.

has anyone been able to set up a HP4100 to print from sco openserver 5 or linux (RH 8.0) over a network and it can print landscape?
 
What interface script are you using?

Is the text that you are printing completely unformatted, or does it have any printer code embedded that could possibly undo the effect of the -oland option?

Jim Asman
jlasman@telus.net
 
eanda10

1. create your printout ouput to a disk-file.

2. Editing by "vi" editor insert the following charachters begining of that output disk-file

&quot;<ESCAPE>&a90P&quot;
------------------------------------------------
To insert the <ESCAPE> char in 'vi'editior :

press <ctrl>V and then press <ESCAPE> charachter in key board.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top