× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Nevermind.  It would seem that something somewhere on the PC side is not able 
to keep a close enough watch on the data stream to sense when spool files come 
out of the AS/400 consecutivly and only the last one makes it into the 
destination file.  

The simple fix is to change your outcommand from:
  outputcommand="scs2ascii > $ROOT/$BRANCH.txt"
to:
  outputcommand="scs2ascii >> $ROOT/$BRANCH.txt"

As this will open the destination file in append everytime, thus avoiding the 
syncronisation problems.

Hope this can help anyone in a similar situation.

-- "Matthew Price" <pricem@xxxxxxxx> wrote:

I have been using tn5250 for some time without a hitch but I just started using 
lp5250d a few days ago.  I work with 15 AS/400s in remote branches and would 
like to have reports printed back to me with lp5250d.  The output from some 
reports arrive at the printer as multiple jobs.  This works fine for most 
branches with tail -f from the output of scs2ascii to another output file with 
scs2ascii truncating its own output file with each new job.  For two of the 
locations, however, I can only get the last page.  The previous pages never 
seem to make it to tail and I do not know where in the pipeline they are 
getting lost.  I have the same setup for each branch on the PC side and would 
assume that the setups on the AS/400 side are also the same.

the lp5250d invocation is as follows:

/usr/bin/lp5250d \
  env.DEVNAME='PRTPCOUT' \
  outputcommand="scs2ascii > $ROOT/$BRANCH.txt" \
  $BRANCH

with ROOT being the same for all and BRANCH being set to each AS/400's hostname.

I then use:
tail -f $ROOT/$BRANCH.txt > out-$BRANCH.txt &
to capture the print jobs as they come off.

tail gives the error "tail: $ROOT/$BRANCH.txt: file truncated" as scs2ascii 
erases the source file for each new print job.  I don't get this error for the 
branches that only produce the last job in the batch.

Anyone got any ideas for a solution?

Thanks,
Matthew Price

________________________________________________________________
The best thing to hit the Internet in years - Juno SpeedBand!
Surf the Web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
_______________________________________________
This is the Linux 5250 Development Project (LINUX5250) mailing list
To post a message email: LINUX5250@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/linux5250
or email: LINUX5250-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/linux5250.



________________________________________________________________
The best thing to hit the Internet in years - Juno SpeedBand!
Surf the Web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.