I am trying to create my own web interface for the plowshare utility, managed to get the script running okay so far, but I am a bit unsatisfied by the way the results are being displayed. Currently I am loading the text file into an array and display it and refresh the page from time to time to load the new results. The text file is being updated by the plowshare utility.
I've been working my brain to death for the past 2 days but can't figure out how I can make this work.

So ... my problem, I have the below log file, and I would like to extract the following information from it:

Filename
Size
Procent
Speed

To make it more interesting the log file is not always in the current form, it fills up along the away, so the script has to take that under consideration.

If anyone can give me some pointers on this one will be greatly apreciated.
Php or shell script should be ok

Forgot to mention that I am using this script on a Qnap Ts219 which runs a custom LINUX. Pretty much all the command line utilities are available.
–
Chris19Sep 7 '10 at 8:30

You want us to help to automatically download files which the hoster doesn't want to be automatically downloaded? I'm asking because of the usage of OCR software to decode captchas.
–
jigfoxSep 7 '10 at 8:39

the utility itself does that, I am only trying to read the output. I think is nothing illegal with that ?!?
–
Chris19Sep 7 '10 at 9:04

I tried using the fgetcsv command but with little chances of success. the way the informaiton is being parsed is distorted, the columns are not being respected by the fgetcsv command. I used the script available on php page.
–
Chris19Sep 10 '10 at 8:20

@Chris I told you it would still be difficult. The content you show is not too parseable for machines. You will do have a lot of post processing. If the columns are not respected, make sure you are actually using the correct delimiter. I am only assuming it's a tab stop. They might be spaces and well (which would complicate things even more). It's a start, nothing more.
–
Gordon♦Sep 10 '10 at 10:06

Thanks for your help, first of all. I checked the script to see if is using the correct delimiter, made a few small adjustments and got pretty much the same result. I'll keep trying, at the moment I'll just leave it as it is due to lack of the time and maybe inspiration as well :). Cheers,C.
–
Chris19Sep 13 '10 at 10:48