Operating System - Tru64 Unix
1748204 Members
4161 Online
108759 Solutions
New Discussion юеВ

Re: HP8150 printer and large files

 
autret
Valued Contributor

HP8150 printer and large files

In Unix, when I try to print a large file (more than 9 Megabytes) on a HP8150 Laserjet printer by the "lpr" command, I get the error message:
"copy file is too large"
and the document doesn't print.
What should I do to print these files?

Thanks
Jean-Louis
Bevet Breizh! (Long live Brittany!)
7 REPLIES 7
Paula J Frazer-Campbell
Honored Contributor

Re: HP8150 printer and large files

HI

I would add more memory to your printer.

Paula
If you can spell SysAdmin then you is one - anon
Steve Steel
Honored Contributor

Re: HP8150 printer and large files

Hi


This is either printer memory or disc.


Try cat file|lp -dprinter

This doe snot copy the file but sends it straight to the printer.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
autret
Valued Contributor

Re: HP8150 printer and large files

With "cat" and "lp", I have the same message:

sgsiosfb> cat xmarrcpt.lis.157019 | lp -d CDT-M-15
lpr: : copy file is too large
Job Number is: 3
Bevet Breizh! (Long live Brittany!)
Paula J Frazer-Campbell
Honored Contributor

Re: HP8150 printer and large files

Hi
With it being a lazer printer it loads each page into memory before it can print.

This, in the case of large single page file can cause printer memory problems.

Paula
If you can spell SysAdmin then you is one - anon
Steve Steel
Honored Contributor

Re: HP8150 printer and large files

Hi

Indeed the printer memory

The only other way would be to print it in pieces.

needs place on /tmp/ or so to hold the split file

Script along these lines

file=$1
let length=`cat $file|wc -l`
let start=1
let x=0
q=""
while [ "$start" -le "$length" ]
do
let x=$x+1
tail -n +$start $file|head -n 60 > /tmp/printfax$x
let start=$start+60
q=$q" "/tmp/printfax$x
done
lp -dprinter $q
/bin/rm /tmp/printfax*


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
autret
Valued Contributor

Re: HP8150 printer and large files

Hi,

Thanks, Paula and Steve.
I think that the method of printing in pieces is very interesting but it can't work in my case. The file I want to print is a Postscript file; so, if I cut this file anywhere (in the middle of the Postcript Prolog, etc.), I should probably have Postscript errors. Don't you think so?

Jean-Louis (France)
Bevet Breizh! (Long live Brittany!)
Paula J Frazer-Campbell
Honored Contributor

Re: HP8150 printer and large files

Yes

Cutting a ps file is not just a matter of cutting as each segment will have to be complete in PS terms.


Paula
If you can spell SysAdmin then you is one - anon