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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-19-2005
ascanestro ascanestro is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 1
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!!
  #2 (permalink)  
Old 10-25-2005
john lewis john lewis is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 1
Cool printing no Cr/LF

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

Join Date: Nov 2005
Location: Arizona
Posts: 83
Do you have a working printer of the same model?
if so /etc/lp/interface/model.orig
holds the interface scripts.
  #4 (permalink)  
Old 11-23-2005
lepiaf lepiaf is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 3
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0