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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the lp command

Status
Not open for further replies.

Francois2

Programmer
Sep 8, 2003
3
GB
I got 2 problems with the command lp:

* how can i change the character-set (i'd like to set the latin1)
* the space between 2 lines is to small (i change the value in -o lpi but it doesn't work the way i want)

Can so help me??

 
Which flavor of *nix ?
Which sort of printer ?
Which spool interface ?
To get pertinent answer, put detailed question :)
 
Sorry this is my first steps with unix and with this forum.
I'm working with sun solaris, the printer is a hp laserjet 4000. And i don't know what a spool interface is.

Thx
 
I don't know solaris, so I can't help you with the legitimate options available.
In the other hand, if you're a little confident with PCL, you can play with embedded escape sequences to play with font selection and text formatting.

Hope This Help
PH.
 
Francois2,

Here are a couple of suggestions: go to doc.sun.com, click the Subject Categories tab, Then expand System Administration, then expand Print Services and expand the manual you want to look at, then click to download the PDF file for the manual.

In the System Administration Guide: Advanced Administration for Solaris 9, there are about 8 chapters devoted to printing. Chapter 6 talks specifically about fonts.

Also, in the Solaris forum of tek-tips, one of the answers suggests going to select Support & Training, then Knowledgebase and search on 70581. It is a good summary of the basics for printing for Solaris.

And you might want to look at the Solaris forum: forum60 to see if you can find your answer there (do a Keyword Search to see if others have had this question before). If you post your question there you might want to say you had posted in the General Forum and are looking for better answers.

Good luck.
 
Hi,

Since you are using HP printer, I suggest you download hp printer tool for solaris which has more filter option.

Go to sun:solaris forum and search for hp printer tool or something. You hould get the link to hp tool. I couldnt remember on top of my head.

feroz
 
What you want to do is part of the PDL (printer description langauge). IIRC the HP4000 supports 3 langauges. PCL5e, PCL 6 (or XL) and PostScript.

If you try to call these from lp, the escape sequence in the data will overwrite these setting (assuming the data file has formatting which is not always the case)

Do you know what PDL you are using?

Is your data formatted (PS/PCL) or raw (no escape sequnces)?

Can you do broune shell scripting?

From Solaris you can disable the queue, print the job you want and then view the spool file to see what the PDL is.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top