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!

Networked Printers

Status
Not open for further replies.

Linden

MIS
Sep 14, 1999
15
US
I have several Ricoh Aficio printers with a NIC card running as network printers. I am running Solaris 7. At this point, the UNIX box recognizes the printers, but whenever I print to them, the print stairsteps which seems to indicate a loss of the CR in the CR/LF sequence. Can anyone give me some direction on how to correct this problem?
 
check your printer type do you have it correct
look at /etc/rc/d/8/userdef for inserting spcecific commands
if you need to jsut adda few to an existing model type
 
I couldn't find any directory/file called /etc/rc/d/8/userdef. Any further suggestions are GREATLY appreciated.
 
finger error. try /etc/rc.d/8/userdef.
But your solution will be in your interface script. Take a look in /usr/lib/lp/models for the nlcr or crnl model to see how to implement the stty command that you will need in your interface script which should be at /usr/lib/li/admins/lp/interfaces. Assuming of course that I have remembered the paths correctly cause they are a pain to remember.
 
Ed,

I must be a total dummmy. (P.S. i AM a total dummy) but I have no idea whatsoever of what you're talking about. How do I get an interface into the system?
 
The interface scripts are held in /usr/spool/lp/admins/lp/interfaces. This is usually linked over to /etc/lp/interfaces, cos it's easier to type!

When you set a printer up on the system, an interface file is created. The interface files have the same name as the printer that you created.

However, if you created the printer using a combination of "lpsystem" and "lpadmin -s", then you don't get an interface file, so you can't hack it to fix stair-stepping text.

Is there an option in the printer to convert CR to CR+LF? That's probably the easiest option.
 
And I made a boo-boo too.
When you create the printer using mkdev lp, the interface file created with your printer name is copied from /usr/spool/lp/model that you have chosen for your printer. If you do a find / -name printername -print then you will find the interface file location.
Within the interface file is a command to handle port attributes for the printer. Line begins STTY and the parameters are set until close.
Hope that this doesn't confuse you further.
 
Ed,

Linden's talking about Solaris 7 (dunno why he's asking the question here)... from what I can see 'mkdev' isn't available.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top