SUMM: lpr printing problems: job truncated

From: Guy Dallaire <dallaire_at_total.net>
Date: Thu, 10 Jul 1997 14:38:30 -0400

Thanks to Juan Gallego <Little.Boss_at_physics.mcgill.ca> 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"

-------------------------------------------------------------------
Received on Thu Jul 10 1997 - 20:50:28 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT