Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Jun 1998 19:37:01
From:      Ritwik Bhattacharya <ritwik@dbrci.blr.daimlerbenz.com>
To:        questions@FreeBSD.ORG
Subject:   Using lpd to control access to printer
Message-ID:  <3.0.1.32.19980606193701.0091aa80@soham.dbrci.blr.daimlerbenz.com>

next in thread | raw e-mail | index | archive | help
I have an HP-Laserjet printer connected to a WinNT workstation with TCP/IP
printing service running. I have configured my FreeBSD box to use this
printer, and all users share this printer thrugh the BSD box. I also have
samba installed on the BSD box. 

I want to get accounting information for all jobs sent to the printer. This
is how the entry in /etc/printcap looks :

rp|remote printer:\
	:lp=:rm=hamsadhwani:rp=lipi:pw=80:pl=65:sd=/var/spool/lpd:\
	:if=/usr/libexec/lpr/lpf:af=/var/spool/lpd/account:

According to the handbook, that's all it should take. But the following
command
	
	pac -Prp

always gives this output :
	
	Login	pages/feet	run	price
	
	total	0.00		0       $      0.00

What is wrong ?

Ritwik Bhattacharya
Scientist
Daimler Benz Research Centre India
----------------------------------------------------------------------------
----
Democracy is a form of government that substitutes election by the
incompetent many for appointment by the corrupt few.
					- George Bernard Shaw

----------------------------------------------------------------------------
----
Ritwik Bhattacharya

Res:				Off:
				    Daimler-Benz Research Centre India Pvt. Ltd.
302 A Somerset Apartments	    	    Daimler-Benz House
18 MG Road			    137, Infantry Road
Bangalore 560 001		   	     Bangalore 560 001

Phone : 0091-80-2861722/24
Fax   : 0091-80-2861723
E-mail: ritwik@dbrci.blr.daimlerbenz.com
             ritwik20@hotmail.com		    

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



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