Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lprng Utility Error Message Complains About Printcap

287 views
Skip to first unread message

wg

unread,
Jun 4, 2004, 11:54:10 AM6/4/04
to
After using apsfilter to configure a printer, lprm is producing this
error message:

"Error: loop in printcap- broth...@slipstream.sandgarden.fake ->
brother1440@slipstream"

Googling and perusals of manuals and the lprn and apsfilter sites were
fruitless.

The printer seems to work otherwise. Anyone know what's causing this
error?

Here's the apsfilter-generated printcap:

root@slipstream:~# cat /etc/printcap
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file. All changes to this file
# will be lost.
brother1440|brother1440:rm=slipstream:rp=brother1440:
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
lp|hl1250;r=300x300;q=medium;c=full;p=letter;m=auto:\
:lp=/dev/lp0:\
:if=/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:
# APS1_END - don't delete this

Lew Pitcher

unread,
Jun 4, 2004, 12:08:32 PM6/4/04
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

wg wrote:

> After using apsfilter to configure a printer, lprm is producing this
> error message:
>
> "Error: loop in printcap- broth...@slipstream.sandgarden.fake ->
> brother1440@slipstream"
>
> Googling and perusals of manuals and the lprn and apsfilter sites were
> fruitless.
>
> The printer seems to work otherwise. Anyone know what's causing this
> error?

Yes. See my comments below...

> Here's the apsfilter-generated printcap:
>
> root@slipstream:~# cat /etc/printcap
> # This file was automatically generated by cupsd(8) from the
> # /etc/cups/printers.conf file. All changes to this file
> # will be lost.
> brother1440|brother1440:rm=slipstream:rp=brother1440:

Assuming that this printcap is installed on your 'slipstream' machine,
the above line says...
"Output sent to the 'brother1440' printer on this machine ('slipstream')
should be sent via the network to the 'brother1440' printer on the
'slipstream' machine to be printed.

This means that you are sending print data to yourself, and never
actually printing it.

I have no idea what you /meant/ to do, but if you remove this line, the
error will go away. You will probably want to replace this line with one
that actually either prints output (like the printer definition below),
or one that forwards data to a printer definition that /does/ print the
output.


> # APS1_BEGIN:printer1
> # - don't delete start label for apsfilter printer1
> # - no other printer defines between BEGIN and END LABEL
> lp|hl1250;r=300x300;q=medium;c=full;p=letter;m=auto:\
> :lp=/dev/lp0:\
> :if=/etc/apsfilter/basedir/bin/apsfilter:\
> :sd=/var/spool/lpd/lp:\
> :lf=/var/spool/lpd/lp/log:\
> :af=/var/spool/lpd/lp/acct:\
> :mx#0:\
> :sh:
> # APS1_END - don't delete this


- --

Lew Pitcher, IT Consultant, Enterprise Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFAwJ5+agVFX4UWr64RAujbAJ9gt+gMcGHi0jJOUx911Jucb+BJmACdHS/E
9lBFp2wIAyFrWVBd1rZExOM=
=zhtm
-----END PGP SIGNATURE-----

wg

unread,
Jun 5, 2004, 5:08:57 PM6/5/04
to
Lew Pitcher <Lew.P...@td.com> wrote in message news:<681wc.37749$Hn.12...@news20.bellglobal.com>...

> wg wrote:
> > Here's the apsfilter-generated printcap:
> >
> > root@slipstream:~# cat /etc/printcap
> > # This file was automatically generated by cupsd(8) from the
> > # /etc/cups/printers.conf file. All changes to this file
> > # will be lost.
> > brother1440|brother1440:rm=slipstream:rp=brother1440:
>
> Assuming that this printcap is installed on your 'slipstream' machine,
> the above line says...
> "Output sent to the 'brother1440' printer on this machine ('slipstream')
> should be sent via the network to the 'brother1440' printer on the
> 'slipstream' machine to be printed.
>
> This means that you are sending print data to yourself, and never
> actually printing it.
>
> I have no idea what you /meant/ to do, but if you remove this line, the
> error will go away.

Thanks. Apsfilter generated the printcap when I ran its setup script.
It knew the printer was local. Guess the script isn't perfect.

0 new messages