From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 08:45:19 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7CD916A41F for ; Thu, 20 Oct 2005 08:45:19 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id A225543D77 for ; Thu, 20 Oct 2005 08:45:18 +0000 (GMT) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.12.11/8.12.11) with ESMTP id j9K8j82g019329 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Oct 2005 15:45:08 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.1/8.12.11) id j9K8j7kB057664; Thu, 20 Oct 2005 15:45:07 +0700 (ICT) Date: Thu, 20 Oct 2005 15:45:07 +0700 (ICT) Message-Id: <200510200845.j9K8j7kB057664@banyan.cs.ait.ac.th> From: Olivier Nicole To: norgaard@math.ku.dk In-reply-to: (message from Erik Norgaard on Thu, 20 Oct 2005 10:33:29 +0200 (CEST)) References: <43574B5E.4020503@esiee.fr> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: f.bonnet@esiee.fr, questions@freebsd.org Subject: Re: Printing quota ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 08:45:19 -0000 > LPRng calls the script with user information as command line > options and the document on STDIN. The script determines the user > from the command line option and counts pages in postscript > documents by parsing STDIN. > If the document doesn't look enough like postscript it is > discarded. Windows users have a hard time getting it right. What I wrote will query the printer for page count before and afterthe job. Olivier