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 problems... petrofyed AIX 1 09-18-2006 09:47 PM
lpq, lpr and printing problems maria_iris UNIX for Dummies Questions & Answers 1 11-30-2005 09:44 PM
Printing Problems with SCO 5.0 Jessie Nand SCO 1 09-07-2005 07:51 AM
Printing Problems bobmcgee UNIX for Dummies Questions & Answers 2 07-20-2002 04:59 PM
Printing Problems in unix ... ( Bar-cdoe - Ip Printing) QuickSilver UNIX for Advanced & Expert Users 3 06-04-2002 07:48 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-19-2005
Registered User
 

Join Date: Aug 2005
Posts: 1
Stumble this Post!
Unhappy Printing problems

I am not able to print plain text in a correct manner.
When I issue the command "lp -ddestination_printer myfile.txt" the printer prints a page with the following contents:

Feb 24 11:26 2005 myfile.txt Page 1
## Configured using SAM by root on Tue

The line beginning with "##" appears just behind and below the "1" (I was not able to edit it as it appears on paper). The rest is blank

I configured the printer for a HP-UX/Oracle system using SAM. Printing PS is OK, but when I try to print plain text, NO WAY.

I guess it has something to do with the printer configuration file and with a failure to handle the carriage return...

Thank you for your help!!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-25-2005
Registered User
 

Join Date: Oct 2005
Posts: 1
Stumble this Post!
Cool printing no Cr/LF

What printer are you going to, if dot matrix try and printer that maps Cr/lf
Reply With Quote
  #3 (permalink)  
Old 11-22-2005
Registered User
 

Join Date: Nov 2005
Location: Arizona
Posts: 81
Stumble this Post!
Do you have a working printer of the same model?
if so /etc/lp/interface/model.orig
holds the interface scripts.
Reply With Quote
  #4 (permalink)  
Old 11-23-2005
Registered User
 

Join Date: Nov 2005
Posts: 3
Stumble this Post!
you may want to try this:

#>tr -d '\r' < textfile > newtextfile

If that still doesn't work, look at the text file using cat -vt

If either don't help, you may need to define a startup.ps which appends a PS header to the file.

Cheers,
LePiaf
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:17 PM.


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

Content Relevant URLs by vBSEO 3.2.0