From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078614710330.tru64-unix-managers.marc@archive.invalid> From: Guy Dallaire Date: Thu, 10 Jul 1997 18:38:30 +0000 To: tru64-unix-managers Subject: SUMM: lpr printing problems: job truncated X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078614710330 Thanks to Juan Gallego for the quick fix. The problem: We recently started to print BIG reports to one of our printers and have discovered a problem with it. The problem is that if that the beginning of the report prints OK but in the middle of it, it just stops and the printer prints the banner page. It never stops at the same page number for the same file, so we figured out that this is not a problem with the file content itself. Also, we tried printing to a different printer and it behaves the same (i.e.: end of report missing) The reports ar 4 to 8 Mb in size, the printer generally stops after printing around 250 pages of a 8Mb report which has approx 300 pages. We also made sure that there were NOT two reports coming at the same time because we've heard that there was a problem with lpr on a remote printer when two jobs were arriving at the same time, in some situations, one of the jobs would not print at all. We are printing on an HP5000 printer that is connected to the network. The printcap entry for the printer looks like this: lp10|HP5000TXT:\ :lf=/usr/adm/lp10err:\ :lp=:\ :rm=HP5SI:\ <- This is defined int /etc/hosts :rp=text:\ :sd=/usr/spool/lpd10: Any idea ? --------------------------- The solution: There is a parameter in the printcap file that limits the maximum size of a job in BUFSIZ blocks (On digital Unix, the BUFSIZ is 8192 bytes). The default is 1000 BUFSIZ blocks (which is about 8 Mb) That is why my 8Mb files were almost printed entirely. You can set it to unlimited by specifying a value of 0. Thanks again to this excellene list and it's people ! ------------------------------------------------------------------- Guy E Dallaire, SysAdmin, DBA Le Directeur General des Elections du Quebec, QC, Canada Phone: (418) 646-8618 Fax: (418) 644-9624 ** "Honni soit qui disco pense" -------------------------------------------------------------------