Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Aug 1996 21:21:20 -0400 (EDT)
From:      "Adrian T. Filipi-Martin" <atf3r@stretch.cs.virginia.edu>
To:        Ken Marsh <durang@u.washington.edu>
Cc:        questions@freebsd.org
Subject:   Re: lpr and file size limits
Message-ID:  <Pine.SUN.3.90.960824211521.9093A-100000@stretch.cs.Virginia.edu>
In-Reply-To: <Pine.A32.3.92a.960824101945.108423A-100000@homer01.u.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.90.960824211521.9093A-100000>