Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!uunet!in1.uu.net!xenitec!vances From: vances@xenitec.xenitec.on.ca (Vance Shipley) Subject: lpr: copy file is too large Organization: Telco Consulting Date: Mon, 11 Dec 1995 04:11:31 GMT Message-ID: <DJEMB8.GsF@xenitec.on.ca> Summary: postscript printer problem Keywords: lpd lpr postscript Sender: news@xenitec.on.ca (xenitec.on.ca News Administrator) Lines: 34 I have a postscript printer installed and working with lpd but if the postscript files I print are over say 1.5MB lpr complains that "copy file is too large". The job prints but it's not complete. Reading the manual page for lpr I indeed find a warning that lpr may truncate jobs which are "too big". Fair enough but really, if I need to print more than ten pages of postscript I often can't do it. Since it's postscript it is very hard to split it up into smaller chunks. It seems to me that on some systems (SCO comes to mind) that large jobs get chunked up into manageable size peices. Is there something I'm missing here? Is this not a common problem? Code fragment from lpr.c: while ((i = read(f, buf, BUFSIZ)) > 0) { if (write(fd, buf, i) != i) { printf("%s: %s: temp file write error\n", name, n); break; } nc += i; if (nc >= BUFSIZ) { nc -= BUFSIZ; nr++; if (MX > 0 && nr > MX) { printf("%s: %s: copy file is too large\n", name, n); break; } } } -Vance