From owner-freebsd-questions Sat Aug 24 18:21:37 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA19383 for questions-outgoing; Sat, 24 Aug 1996 18:21:37 -0700 (PDT) Received: from virginia.edu (mars.itc.Virginia.EDU [128.143.2.9]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id SAA19365 for ; Sat, 24 Aug 1996 18:21:33 -0700 (PDT) Received: from mail.cs.virginia.edu by mail.virginia.edu id aa21575; 24 Aug 96 21:21 EDT Received: from stretch.cs.Virginia.edu (atf3r@stretch-fo.cs.Virginia.EDU [128.143.136.14]) by archive.cs.Virginia.EDU (8.7.1/8.6.6) with SMTP id VAA19312; Sat, 24 Aug 1996 21:21:23 -0400 (EDT) Received: by stretch.cs.Virginia.edu (4.1/SMI-2.0) id AA09221; Sat, 24 Aug 96 21:21:20 EDT Date: Sat, 24 Aug 1996 21:21:20 -0400 (EDT) From: "Adrian T. Filipi-Martin" Reply-To: adrian@virginia.edu To: Ken Marsh Cc: questions@freebsd.org Subject: Re: lpr and file size limits In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sat, 24 Aug 1996, Ken Marsh wrote: > I just got Ghostscript working for my hp500c printer, and have run into > trouble printing photographs that I have scanned. They are not very large, > about 60K each, but when I print them using xv, xv cats the temporary > postscript file to lpr, and lpr prints a short error message on paper and > this on screen: > > lpr: : copy file is too large > > The only potentially meaningful part of the printed error is: > > Last OS error: 19 > > > Is there some way I can allow larger files to be processed by lpr? The maximum size file that you can spool is limited by your printcap entry. See the man page and look for mx. The default is 1000 blocks. That being said, you probably do not need to change this. What you should do instead is use the "-s" option with lpr. This causes lpr to make a symbolic link to the file you are printing instead of copying it to the spooling area. If your program (xv?) wants to write to lpr via a pipe, this probably won't work. Just print to a file, then use "lpr -s" on that file. cheers, Adrian adrian@virginia.edu ---->>>>| Support your local programmer, System Administrator --->>>| STOP Software Patent Abuses NOW! NVL, NIIMS and Telemedicine Labs -->>| For an application and information Member: League for Programming Freedom ->| see: http://www.lpf.org/