LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-06-2008, 06:48 PM   #1
felton57
Member
 
Registered: Aug 2007
Posts: 35

Rep: Reputation: 15
How to use cups-lpd instead of "lpd"


The software that I am currently using must use "lpd", however I had to upgrade to RHEL4 and now I can't get it to print.

What do I need to do to get cups-lpd to work with my legacy software that only uses lpd?
 
Old 06-08-2008, 10:29 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
My read of cups-lpd is that it isn't really an lpd substitution but rather a way to interface your local cups install with an lpd setup on another systems.

I did find some information about doing lpd on Linux at the following site:
http://www.linuxfoundation.org/en/Op...DDocumentation

The question is what exactly is your application doing that requires "lpd". It may be there is a way you can just write a script that uses the "lp" command to do what you need and just name the script appropriately.
 
Old 06-12-2008, 10:47 AM   #3
felton57
Member
 
Registered: Aug 2007
Posts: 35

Original Poster
Rep: Reputation: 15
To be more precise. The following is what I am trying to do.


During my simulation, I want to print a report by pressing "F12".

In the following file:

/etc/X11/twm/system.twmrc

There is a line witten in it to cause it to print. As shown below.

"F12" = : all : f.exec "xwd | xpr -device ljet -cutoff 30 | lpr -Plp &"

In Red Hat 7.3 I had no problems printing the report using "F12", but

with RHEL4 Workstation it does not print. In Red Hat 9.0 it would print

only one time, but at least it did print.

Help me, please!
 
Old 06-13-2008, 09:46 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Odd - xpr in your key map does not appear to be available for RHEL4 but is on RHEL5 (part of xorg-x11-apps RPM).

The online man page for xpr says it formats the xwd dump (done earlier in your map command line) for printing. It then puts it to lpr command.

lpr works for cups but since you're not getting xpr the issue would appear to be there.

Unfortunately this isn't an area I'm knowledgeable in so I'd suggest you post a new question to the list (not in this thread) saying "How do I get xpr working on RHEL4?". Someone knowledgeable about it may be able to provide details or may tell you another way to do the print of the xwd. (I gather there are some conversion utilities and maybe the newer way is convert and print but if so it makes one wonder why xpr is available for RHEL5.)

Failing all that you might try to locate source for xpr and build it yourself.

Sorry I don't have a better answer.
 
Old 06-13-2008, 12:59 PM   #5
felton57
Member
 
Registered: Aug 2007
Posts: 35

Original Poster
Rep: Reputation: 15
You have been a great help! This seems to help me narrow my search for a fix. Thanks!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get list of LPD queue names from LPD server? jantman Linux - Hardware 0 02-07-2008 12:21 PM
cups-lpd: "Numerical result out of range" ramz Linux - General 2 07-27-2006 09:46 AM
FC4 and cups-lpd Jerre Cope Fedora - Installation 0 07-19-2005 08:19 PM
lpd / cups question anandj Fedora 1 12-03-2004 06:48 AM
lpd "no identifier" error abyss Linux - Software 0 08-28-2002 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration