The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
printing the next line too?? AndyA Shell Programming and Scripting 6 01-31-2008 03:35 AM
Printing a Line from a file Nysif Steve UNIX for Dummies Questions & Answers 4 08-31-2007 04:58 AM
[OpenServer 5]Line Printing and special character (é @) tankd UNIX for Dummies Questions & Answers 5 08-02-2007 12:44 PM
Creating a line for printing jhansrod Shell Programming and Scripting 3 06-17-2005 02:38 AM
printing problem in sco5.0.7 openserver arunvmk SCO 0 05-02-2005 11:24 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-31-2007
Registered User
 

Join Date: Jul 2007
Posts: 5
[OpenServer 5]Line Printing and Hp laserjet 2015dn

Hello,

I want to install an Hp Laserjet 2015dn on SCO OpenServeur5 without CUPS.

This printer doesn't have an PrinterServer inside.

The configuration work fine, but i can't print anything.

I heart solution with netcat but i can't find any docs...

How should i configure netcat and my printer ?

Thanks

Tankd
Reply With Quote
Forum Sponsor
  #2  
Old 07-31-2007
jgt jgt is offline
Registered User
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 348
Set the printer up using tcp.
Add a remote printer through SCOADMIN
Now you have two choices, either screen every file before it is printed to either ensure that it has CRLF line termination or add <esc>&k2G to the beginning of the file.
You will have to add any other PCL commands to the file as well.
Another way to avoid trapping and modifying the print file, is to also create a local printer with /dev/null and dumb for the printer model, then change the loop that actually send the file to the printer from 'cat ${file}......'
to
(
cat escape.seq.file;
cat $file;
cat reset.seq;
)\
|lp -d remote-printer-name

Then either create a different local printer for each escape sequence,
or add a -o escape.seq to the lp command

Last edited by jgt; 07-31-2007 at 10:08 AM.
Reply With Quote
  #3  
Old 08-07-2007
Registered User
 

Join Date: Jul 2007
Posts: 5
I can't find where i should add

cat escape.seq.file;
cat $file;
cat reset.seq;
)\
|lp -d remote-printer-name

Tankd
Reply With Quote
  #4  
Old 09-04-2007
Registered User
 

Join Date: Jul 2007
Posts: 1
hp2015dn

Hi tankd,

I think the better solution is to install an HP 4250 n.

In fact, the print server is different in a 2015 dn and in a 4250 n.

good luck

Franz
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0