I use a service called Home and I'm looking for a script that will download a few things based off my Apache log. I say based on my log because the service typically requests a lot of things and manually downloading the requests is a bit tedious and tiresome. A typical line from my log looks something like this:
192.168.xx.xx - - [15/Nov/2009:21:50:14 -0500] "GET /c.home/prod/live/Objects/AE90FBA4-534F4BD1-A030DB15-F849F709/object_T032.odc HTTP/1.1" 404 274
This is but just one of among thousands there are for the service. So basically, what I am looking for is a script that will append the beginning URL to the rest of the url /c.home/... via the Web and then create a directory based on the ID (ie. AE90FBA4-534F4BD1-A030DB15-F849F709) and then download the file that is returning the not found error "404" in to the newly created directory in the htdocs folder. If the directory exists but the file is missing, it will not create a new directory but just download the file and place it in the existing directory.
I am new to this and I am leading to believe that to obtain such results, it will require me to modify Apache's settings and/or create a separate program that will run on the sidelines with Apache. If no script or anything like that exists and if it's too complicated, then no biggy.
So basically, I am trying to run the service off of my PC. I know, not worth the trouble but it has been a project of mine for awhile now.