Hi,

        I am attaching a working config of printcap with LPRng-3.7.4-23 and ifhp
3.4.4-1.I still use accounting.sh instead of accounting.pl.Hope this is
usefull.

hp4m:\
        :sh:\
        :ml=0:\
        :mx=0:\
        :sd=/var/spool/lpd/hp4m:\
        :lpd_bounce=true:\
        :lp=hp4m%9100:\
        :lf=/var/spool/lpd/kone/log:\
        :af=/var/spool/lpd/kone/acct:\
        :filter=/usr/local/libexec/filters/ifhp:\
        :ifhp=model=hp4mplus,of_options=status pagecount
waitend,accounting=/usr/local/libexec/filters/accounting.sh:\
        :of=/usr/local/libexec/filters/ofhp:\
        :as=\
        :ae=/usr/local/libexec/filters/accounting.sh:

Regards,

Anand


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Aavo Kuslapuu
Sent: Friday, August 17, 2001 11:27 AM
To: [EMAIL PROTECTED]
Subject: RE: LPRng: Accounting doesn't work!




On Thu, 16 Aug 2001, Ryan Novosielski wrote:

> Accounting, to my best recollection, requires the machine that is actually
> talking to the printer to have a printcap entry for lp of "/dev/null" and
> ifhp must include dev=printer%port...
> That's the only thing that really works for me.

I never used entry "/dev/null" ... and accounting works fine. I still use
LPRng-3.5.1 and ifhp-2.2.8 on RedHat 6.2 server. 2 or 3 years ago when
I first installed the LPRng, the system find that printer attached, is
raw@zbi (?! ... zbi is nickname for zbi.ee, which also works as DNS
server). In the hosts file printer is: laser4m.zbi.ee

##PRINTTOOL3## LOCAL ljet4 600x600 a4 {} LaserJet4 Default {}
lp|raw@zbi
        :sd=/var/spool/lpd/lp
        :mx#0
        :sh
        :sf
        :cm=HP LaserJet 4M Plus
        :lf=log
        :rw
        :ps=status
        :af=acct
        :lp=laser4m%9100

:if=/usr/local/lib/filters/ifhp -Tpagecount=off,forcepagecount=on,infostatus
=off,quiet=on
#
:of=/usr/local/lib/filters/ofhp -Tpagecount=off,forcepagecount=on,infostatus
=off,quiet=on
        :as=/usr/local/lib/filters/accounting.pl start
        :ae=/usr/local/lib/filters/accounting.pl end

--------------------------------
Aavo Kuslapuu
Engineer
Institute of Zoology and Botany
Riia 181, Tartu, Estonia
Voice (372) 472 447
GSM: 052 76 169
--------------------------------



----------------------------------------------------------------------------
-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the
impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
----------------------------------------------------------------------------
-


-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to