Hmm.. I must have been a bit unclear. We have not made any changed to the 
lp5250d. We are taking the text output as generated by outputcommand and 
doing additional processing on the file. If the report is broken in two 
bits, we cannot determine whether the file has been fully spooled, as we 
check for the last line in the report for completion. I am trying to 
understand what would cause lp5250d to split the file on a page break.

There are other times, when lp5250d concatenates two very short reports 
into one file/page. This only seems to happen if there are two reports, 
one after the other which have only a 1/4 page of data and are wider than 
130 columns. 

A factor to consider may be that lp5250d and the as400 are on opposite 
ends of a 256k wan link. Could there be a timeout issue between pages? I 
this something we can adjust?



Elmars Ositis
Head of IT
HVB Bank Latvia AS
Elizabetes iela 63
Riga, LV-1050
tel:+371 708 5531
fax: +371 708 5507

----- Message from James Rich <james@xxxxxxxxxxx> on Wed, 7 Dec 2005 
15:41:18 -0700 (MST) -----
Linux 5250 Development Project <linux5250@xxxxxxxxxxxx>
Re: [LINUX5250] split output file with tn5250d
On Tue, 6 Dec 2005, elmars.ositis@xxxxxx wrote:

(sorry to be slow in responding, I've been consumed in work these last few 


> Recently we have started using lp5250d to output as400 spool files to
> text, which we then process for use in another manner. Since the Linux
> process does not know whent the complete spool file has been received, 
> checks the end of the file for specific content. If the content exists
> (*** END OF REPORT ***) then it assumes the document has been spooled 
> is ready for further processing.

Are you saying that you modified lp5250d?  lp5250d certainly does know 
when the end of the spool file has been reached.  What makes you believe 
that it doesn't?  The following outputcommand works perfectly for me:

outputcommand = scs2pdf> /home/samba/STSE09-`date +%Y-%m-%d-%H-%M-%S`.pdf

James Rich

It's not the software that's free; it's you.
                 - billyskank on Groklaw

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].