From owner-freebsd-questions Tue Feb 24 17:14:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA23707 for freebsd-questions-outgoing; Tue, 24 Feb 1998 17:14:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA23689 for ; Tue, 24 Feb 1998 17:14:43 -0800 (PST) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt3-212.HiWAAY.net [208.147.146.212]) by fly.HiWAAY.net (8.8.8/8.8.6) with ESMTP id TAA15210; Tue, 24 Feb 1998 19:13:13 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by nospam.hiwaay.net (8.8.8/8.8.4) with ESMTP id SAA01818; Tue, 24 Feb 1998 18:45:28 -0600 (CST) Message-Id: <199802250045.SAA01818@nospam.hiwaay.net> X-Mailer: exmh version 2.0.1 12/23/97 To: Jacques Hugo cc: questions@FreeBSD.ORG From: David Kelly Subject: Re: How large can the lpd spool be? In-reply-to: Message from Jacques Hugo of "Tue, 24 Feb 1998 08:03:43 +0200." <34F262BF.167EB0E7@wired.ctech.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 24 Feb 1998 18:45:27 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi there ... > > If I print a .ps file to my print spooler that > is maybe a bit too large, I get > > lpr: file.ps: copy file is too large > > The file gets queued, and then /dev/nulle'd. > Can one make the spooler recieve larger > print files, or does it have to be compiled > into the kernel? Add "mx#0" to your /etc/printcap, something like this: lp|local line printer:\ :sh:\ :mx#0:\ :lp=/dev/lpt0:\ :sd=/var/spool/output/lpd:\ :lf=/var/log/lpd-errs:\ :if=/usr/local/libexec/psif: See "man printcap" for more details. "mx" defaults to 1000 BUFSIZ (1024 byte) blocks, or just under 1 megabyte (1024 x 1024 would be one megabyte). Quite small for postscript printers. Quite large for plain text dot matrix printers. Setting mx to zero limits the print size to the free space on your spool volume (if the file has to be copied before printing). Forgot if lpr/lpd copies first, or can print from the original file as the SYSV lp system can. I do remember if you are printing from Netscape that lpr is reading standard input and has to save the file in the spool directory, /var/spool/output/lpd in the above example. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message