Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 1998 16:38:29 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Oleg Ogurok <oleg@ogurok.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: lpr: copy file is too large
Message-ID:  <19981211163829.C24115@scientia.demon.co.uk>
In-Reply-To: <Pine.BSF.4.05.9812102352190.5138-100000@ogurok.com>
References:  <Pine.BSF.4.05.9812102352190.5138-100000@ogurok.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Oleg Ogurok wrote:

> If I try to print big files, or big pages from netscape, I get "lpr: copy
> file is too large". I have no problems with small files and I have
> plenty of space for spooler (/var). Any suggestions?
> 
> Here's string from /etc/printcap:
> lp|Operations printer:\
>         :sh:\
> 	:rm=ops-print.pfmc.net:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
>         :if=/usr/local/libexec/hpif:

Check the manpage,

$ man printcap
PRINTCAP(5)		  FreeBSD File Formats Manual		   PRINTCAP(5)

NAME
     printcap - printer capability data base

[...]

CAPABILITIES
     Refer to termcap(5) for a description of the file layout.

     Name	Type	  Default		 Description

[...]

     mx 	num	  1000			 maximum file size (in BUFSIZ
						 blocks), zero = unlimited

I think that's what you need to change anyway. Try this:

lp|Operations printer:\
        :sh:mx#0:\
        :rm=ops-print.pfmc.net:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
        :if=/usr/local/libexec/hpif:

(note that's mx#0, not mx=0. This caught me at first :-)

-- 
Ben Smithurst
ben@scientia.demon.co.uk

send a blank message to ben+pgp@scientia.demon.co.uk for PGP key

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?19981211163829.C24115>