From owner-freebsd-doc Fri Jun 11 22:10: 9 1999 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 99DFB14E51 for ; Fri, 11 Jun 1999 22:10:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA44854; Fri, 11 Jun 1999 22:10:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mgate06.so-net.ne.jp (mgate06.so-net.ne.jp [210.132.247.36]) by hub.freebsd.org (Postfix) with ESMTP id E87D71507D for ; Fri, 11 Jun 1999 22:04:10 -0700 (PDT) (envelope-from koya@math.yokohama-cu.ac.jp) Received: from mail.jf6.so-net.ne.jp (mail.jf6.so-net.ne.jp [210.139.246.119]) by mgate06.so-net.ne.jp (8.8.8+3.0Wbeta9/3.6W99042816) with ESMTP id OAA13250 for ; Sat, 12 Jun 1999 14:04:09 +0900 (JST) Received: from localhost (p84eadc.ykh2.ap.so-net.ne.jp [210.132.234.220]) by mail.jf6.so-net.ne.jp (8.8.8+3.0Wbeta9/3.7W99040113) with ESMTP id OAA25535 for ; Sat, 12 Jun 1999 14:04:08 +0900 (JST) Message-Id: <19990612140910P.koya@math.yokohama-cu.ac.jp> Date: Sat, 12 Jun 1999 14:09:10 +0900 From: Yoshihiro Koya Reply-To: koya@math.yokohama-cu.ac.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/12148: On a sample in the printing section of The HandBook Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12148 >Category: docs >Synopsis: On a sample in the printing section of The HandBook >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 11 22:10:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Yoshihiro Koya >Release: FreeBSD 2.2.8-RELEASE i386 >Organization: >Environment: In the Handbook accompanied with FreeBSD 2.2.8-RELEASE. (Also in the Handbook on the web ). >Description: In Section 7.6.4.3 of the FreeBSD Handbook, that is the section entitled "Controlling Sizes of Jobs Submitted", you can find the following sample to explain how to write printcap file to limit sizes of printing jobs: ---------------------------------------------------------------------- Let us add limits to our example printers rattan and bamboo. Since those artists' PostScript files tend to be large, we will limit them to five megabytes. We will put no limit on the plain text line printer: # # /etc/printcap for host rose # # # No limit on job size: # rattan|line|diablo|lp|Diablo 630 Line Printer:\ :sh:sd=/var/spool/lpd/rattan:\ :lp=/dev/lpt0:\ :if=/usr/local/libexec/if-simple: # # Limit of five megabytes: # bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\ :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: ---------------------------------------------------------------------- Please note the first example. There is no mx field in rattan records. As is well known, the default value of mx field is 1000 block, and threfore, in the above sample, the size of jobs of users of rattan printer might also be limited to 1000 blocks. Of course, this description will not be harmful for experts. However, for begginers it might be quite harmful. >How-To-Repeat: > >Fix: Please change the above sample as follows, for example: *** handbook109.html.orig Sat Jun 12 04:33:57 1999 --- handbook109.html.new Sat Jun 12 04:36:48 1999 *************** *** 188,194 **** # No limit on job size: # rattan|line|diablo|lp|Diablo 630 Line Printer:\ ! :sh:sd=/var/spool/lpd/rattan:\ :lp=/dev/lpt0:\ :if=/usr/local/libexec/if-simple: --- 188,194 ---- # No limit on job size: # rattan|line|diablo|lp|Diablo 630 Line Printer:\ ! :sh:mx#0:sd=/var/spool/lpd/rattan:\ :lp=/dev/lpt0:\ :if=/usr/local/libexec/if-simple: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message