Unix Technical Forum

Lprng Utility Error Message Complains About Printcap

This is a discussion on Lprng Utility Error Message Complains About Printcap within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> After using apsfilter to configure a printer, lprm is producing this error message: "Error: loop in printcap- brother1440@slipstream.sandgarden.fake -> ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 11:57 AM
wg
 
Posts: n/a
Default Lprng Utility Error Message Complains About Printcap

After using apsfilter to configure a printer, lprm is producing this
error message:

"Error: loop in printcap- brother1440@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=brother14 40:
# APS1_BEGINrinter1
# - 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=aut o:\
: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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 11:58 AM
Lew Pitcher
 
Posts: n/a
Default Re: Lprng Utility Error Message Complains About Printcap

-----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- brother1440@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=brother14 40:


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_BEGINrinter1
> # - 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=aut o:\
> :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+gMcGHi0jJOUx911J ucb+BJmACdHS/E
9lBFp2wIAyFrWVBd1rZExOM=
=zhtm
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 11:59 AM
wg
 
Posts: n/a
Default Re: Lprng Utility Error Message Complains About Printcap

Lew Pitcher <Lew.Pitcher@td.com> wrote in message news:<681wc.37749$Hn.1232605@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=brother14 40:

>
> 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com