From owner-freebsd-questions Sat Jun 6 10:36:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA26759 for freebsd-questions-outgoing; Sat, 6 Jun 1998 10:36:03 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from saturn.dbft.daimlerbenz.com (firewall-user@saturn.DaimlerBenz.com [141.113.7.197]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA26707 for ; Sat, 6 Jun 1998 10:35:41 -0700 (PDT) (envelope-from ritwik@dbrci.blr.daimlerbenz.com) Received: (from uucp@localhost) by saturn.dbft.daimlerbenz.com (8.7.1/8.7.1) id TAA14501 for ; Sat, 6 Jun 1998 19:39:58 +0200 (MET DST) Received: from ns.dbft.daimlerbenz.com(53.122.35.140) by saturn.dbft.daimlerbenz.com via smap (3.2) id xma014498; Sat, 6 Jun 98 19:39:46 +0200 Received: from dbrci.blr.daimlerbenz.com ([53.248.60.16]) by ns.dbft.daimlerbenz.com (8.7.1/8.7.1) with SMTP id TAA01833 for ; Sat, 6 Jun 1998 19:33:08 +0200 (MET DST) Received: from hamsadhwani [53.248.60.17] by dbrci.blr.daimlerbenz.com with smtp (Exim 0.53 #1) id E0yiJaw-0001z7-00; Sat, 6 Jun 1998 19:35:18 +0530 Message-Id: <3.0.1.32.19980606193701.0091aa80@soham.dbrci.blr.daimlerbenz.com> X-Sender: ritwik@soham.dbrci.blr.daimlerbenz.com X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Sat, 06 Jun 1998 19:37:01 To: questions@FreeBSD.ORG From: Ritwik Bhattacharya Subject: Using lpd to control access to printer Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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