Date: Fri, 26 Jun 1998 22:09:45 -0400 From: Matthew Hunt <mph@pobox.com> To: Joe McGuckin <joe@via.net>, questions@FreeBSD.ORG Subject: Re: LPR: copy file too large... Message-ID: <19980626220945.C363@flarn.dyn.ml.org> In-Reply-To: <199806270054.RAA27221@monk.via.net>; from Joe McGuckin on Fri, Jun 26, 1998 at 05:54:37PM -0700 References: <199806270054.RAA27221@monk.via.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 26, 1998 at 05:54:37PM -0700, Joe McGuckin wrote:
> What's happening here? The file is only about 1.3Megs of postscript.
It is an artificial limit.  From "man printcap", the "mx" capability:
     mx         num       1000                   maximum file size (in BUFSIZ
                                                 blocks), zero = unlimited
1000 is the default setting; BUFSIZ is 1024.  So, by default,
print jobs are limited to 1000 kB, or about 1 MB.
To remove the limitation, add a "mx#0" capability to /etc/printcap
for the printer of interest, for example:
lj4|lp|ps|atherton-ps:\
        :sd=/var/spool/lj-ps:\
        :rm=123.123.123.123:\
        :mx#0:\
        :sh:\
        :sb:\
        :rp=raw
Or, use some appropriate number of kB instead of 0.  (Note that
in printcap, termcap, etc., capabilities taking numbers use "#"
isntead of "=".  I always forget that!)
-- 
Matthew Hunt <mph@pobox.com> * Stay close to the Vorlon.
http://www.pobox.com/~mph/pgp.key for PGP public key 0x67203349.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980626220945.C363>
