Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 1999 22:06:03 +0200
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        hackers@FreeBSD.ORG
Subject:   lpd woes ... missing feature that different printer share same spool
Message-ID:  <19990525220603.A5481@titan.klemm.gtn.com>

next in thread | raw e-mail | index | archive | help
Hi !

lpd refuses to startup, if you have multiple entries in /etc/printcap
that use the same spooldir.

My new apsfilter 5.1.1 has the new feature, that you can print in
high, medium and low density by simply typing:
	lpr -P{low,med,high}

For that purpose I need three more entries in printcap, that differ
in the name of the input filter, since apsfilter features like
print density are invoked by calling apsfilter (the input filter)
by different names, but share the same spooldir.

But this happens when starting up lpd:
 root{154} /usr/src lpd
chkprintcap: lp8 and lp7 share the same spool, /var/spool/lpd/stcolor-a4-auto-color
chkprintcap: lp7 and lp6 share the same spool, /var/spool/lpd/stcolor-a4-auto-color
chkprintcap: lp6 and lp share the same spool, /var/spool/lpd/stcolor-a4-auto-color
lpd: 3 errors in printcap file, exiting

Would it be safe, to modify lpd to tolerate this and only printing
out a warning ... ?!

	Andreas ///

printcap entry for reference, see "^^^^^^^^^"


# LABEL apsfilter
# apsfilter setup Sun May 23 17:27:14 CEST 1999
#
# APS_BASEDIR:/usr/local/apsfilter
#
#
ascii|lp1|stcolor-a4-ascii-mono|stcolor ascii mono:\
	:lp=/dev/lpt0:\
	:sd=/var/spool/lpd/stcolor-a4-ascii-mono:\
	:lf=/var/spool/lpd/stcolor-a4-ascii-mono/log:\
	:af=/var/spool/lpd/stcolor-a4-ascii-mono/acct:\
	:if=/usr/local/apsfilter/filter/aps-stcolor-a4-ascii-mono:\
	:mx#0:\
	:sh:
#
lp2|stcolor-a4-auto-mono|stcolor auto mono:\
	:lp=/dev/lpt0:\
	:sd=/var/spool/lpd/stcolor-a4-auto-mono:\
	:lf=/var/spool/lpd/stcolor-a4-auto-mono/log:\
	:af=/var/spool/lpd/stcolor-a4-auto-mono/acct:\
	:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-mono:\
	:mx#0:\
	:sh:
#
lp3|stcolor-a4-ascii-color|stcolor ascii color:\
	:lp=/dev/lpt0:\
	:sd=/var/spool/lpd/stcolor-a4-ascii-color:\
	:lf=/var/spool/lpd/stcolor-a4-ascii-color/log:\
	:af=/var/spool/lpd/stcolor-a4-ascii-color/acct:\
	:if=/usr/local/apsfilter/filter/aps-stcolor-a4-ascii-color:\
	:mx#0:\
	:sh:
#
lp|lp4|stcolor-a4-auto-color|stcolor auto color:\
	:lp=/dev/lpt0:\
	:sd=/var/spool/lpd/stcolor-a4-auto-color:\
	:lf=/var/spool/lpd/stcolor-a4-auto-color/log:\
	:af=/var/spool/lpd/stcolor-a4-auto-color/acct:\
	:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-color:\
	:mx#0:\
	:sh:
#
raw|lp5|stcolor-a4-raw|stcolor auto raw:\
	:lp=/dev/lpt0:\
	:sd=/var/spool/lpd/stcolor-raw:\
	:lf=/var/spool/lpd/stcolor-raw/log:\
	:af=/var/spool/lpd/stcolor-raw/acct:\
	:if=/usr/local/apsfilter/filter/aps-stcolor-a4-raw:\
	:mx#0:\
	:sh:
#
lp6|low|stcolor 180dpi low resolution:\
	:lp=/dev/lpt0:\
	:sd=/var/spool/lpd/stcolor-a4-auto-color:\
                           ^^^^^^^^^^^^^^^^^^^^^ same spooldir needed
	:lf=/var/spool/lpd/stcolor-a4-auto-color/log:\
	:af=/var/spool/lpd/stcolor-a4-auto-color/acct:\
	:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-color-180x180:\
                                                                  ^^^^^^^^
	:mx#0:\
	:sh:
#
lp7|med|stcolor 360dpi medium resolution:\
	:lp=/dev/lpt0:\
	:sd=/var/spool/lpd/stcolor-a4-auto-color:\
                           ^^^^^^^^^^^^^^^^^^^^^ same spooldir needed
	:lf=/var/spool/lpd/stcolor-a4-auto-color/log:\
	:af=/var/spool/lpd/stcolor-a4-auto-color/acct:\
	:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-color-360x360:\
                                                                  ^^^^^^^^
	:mx#0:\
	:sh:
#
lp8|high|stcolor 720dpi high resolution:\
	:lp=/dev/lpt0:\
	:sd=/var/spool/lpd/stcolor-a4-auto-color:\
                           ^^^^^^^^^^^^^^^^^^^^^ same spooldir needed
	:lf=/var/spool/lpd/stcolor-a4-auto-color/log:\
	:af=/var/spool/lpd/stcolor-a4-auto-color/acct:\
	:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-color-720x720:\
                                                                  ^^^^^^^^
	:mx#0:\
	:sh:


-- 
Andreas Klemm                               http://www.FreeBSD.ORG/~andreas
                                  http://www.freebsd.org/~fsmp/SMP/SMP.html
                                powered by Symmetric MultiProcessor FreeBSD


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990525220603.A5481>