tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMM: lpr printing problems: job truncated
@ 1997-07-10 18:38 Guy Dallaire
  0 siblings, 0 replies; only message in thread
From: Guy Dallaire @ 1997-07-10 18:38 UTC (permalink / raw)
  To: tru64-unix-managers

Thanks to Juan Gallego <Little.Boss@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"

-------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-07-10 18:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-10 18:38 SUMM: lpr printing problems: job truncated Guy Dallaire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox