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!
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.