Computing.Net > Forums > Unix > how to configure printcap?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

how to configure printcap?

Reply to Message Icon

Name: nelsmy
Date: April 11, 2005 at 21:16:28 Pacific
OS: Red hat
CPU/Ram: Pentium 512
Comment:

Dear all,

Since local lpd will do process filter for remote lpd, so how should we configure it so that it local lpd will accept filter that pass to remote lpd to process it?

Thanks and your help are appreciate!!



Sponsored Link
Ads by Google

Response Number 1
Name: nelsmy
Date: April 12, 2005 at 18:42:13 Pacific
Reply:

I get the solution here, but anyone can explain about it for me?


Here the original printcap

lp5|5|dot matrix printer:\
:lf=/usr/adm/lp5err:\
:lp=:\
:rm=tom.digital.com:\
:rp=lp2:\
:sd=/usr/spool/lpd5:


When print multiple copies to the printer.

lpr -#2 -P5 filename
Only get one copy. The remote system doesn't interpret the multiple copies switch on lpr.

So create another printcap entry that looks like this.

lp8|8|pass-through entry:\
:lp=/dev/null:\
:mx#0:\
:of=/usr/lbin/passtolp5:\
:sd=/usr/spool/lpd8:

Then create a file called /usr/lbin/passtolp5 that looks like this.

#!/bin/csh -f
/bin/cat | lpr -Plp5

Finally I work!

So anyone can explain a bit about the whole process why should i pass through the print job, so that the remote lpd should be work fine?


0

Response Number 2
Name: Luke Chi
Date: April 17, 2005 at 19:33:42 Pacific
Reply:

1. Index To All The Configuration and Printcap Options:
http://www.lprng.com/LPRng-Reference-Multipart/optionindex.htm

2. Printcap Basics
http://www.lprng.com/LPRng-Reference-Multipart/x3105.htm

3. Printing under Unix http://userpages.umbc.edu/~jack/ifsm498/print.html

Luke Chi


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Input from file, create m... [Script] Filesize checkin...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: how to configure printcap?

How to configure raid 0 in RS 6000 www.computing.net/answers/unix/how-to-configure-raid-0-in-rs-6000/6345.html

How to configure my internal modem card www.computing.net/answers/unix/how-to-configure-my-internal-modem-card/1873.html

How to Configure DAT drive (digital dds3 www.computing.net/answers/unix/how-to-configure-dat-drive-digital-dds3/3384.html