Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 1999 14:09:10 +0900
From:      Yoshihiro Koya <Yoshihiro.Koya@math.yokohama-cu.ac.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/12148: On a sample in the printing section of The HandBook
Message-ID:  <19990612140910P.koya@math.yokohama-cu.ac.jp>

next in thread | raw e-mail | index | archive | help

>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 <http://www.FreeBSD.org>).

>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:
>
	<Code/input/activities to reproduce the problem (multiple lines)>

>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




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