1476
General Software Discussion / I Don't Want To Recode The Wheel
« Last post by tinjaw on April 13, 2007, 12:54 PM »I have written a few batch files to do this at work. It is time for me to rewrite them into a more robust application or find a replacement solution because several departments at my work place have adopted these scripts as SOP. I doubt there exists a freeware program with a small footprint that does what I need quickly and with command-line options available.
The scripts...
* grab the latest SFV file with SHA1 hashes
* iterate through the files listed and copy them locally from a shared drive if they do not exist locally.
* if they exist locally, it computes the SHA1 hash of the local file. If they are different, it overwrites the local file with the network file.
* shows a results screen
* user re-executes script if any changes were made.
* if third time in a row scripts still show diffs, then they call for help.
This must be able to run from the command-line.
Yes this is easy to script up. That is why I already did this. However, not that it is being used as SOP it needs to be more than some quick scripts. I need to add versioning, insure the shared network files are correct, error handling, logging, etc. Everything that real world applications need in the corporate environment.
If I can't find anything that does 95%+ of what I need, I will be writing it and releasing it as freeware.
All of the file synchronization applications are too heavy and full of features I don't need. The files are only available on a SMB shared drive and I can't use anything else like a rsync server, etc.
I am almost certain that I will need to write this myself to get just what I want, but I figured I'd might as well throw this out there to see if anybody knows of such a tool or, more likely, how interested people are in getting such a utility built.
The scripts...
* grab the latest SFV file with SHA1 hashes
* iterate through the files listed and copy them locally from a shared drive if they do not exist locally.
* if they exist locally, it computes the SHA1 hash of the local file. If they are different, it overwrites the local file with the network file.
* shows a results screen
* user re-executes script if any changes were made.
* if third time in a row scripts still show diffs, then they call for help.
This must be able to run from the command-line.
Yes this is easy to script up. That is why I already did this. However, not that it is being used as SOP it needs to be more than some quick scripts. I need to add versioning, insure the shared network files are correct, error handling, logging, etc. Everything that real world applications need in the corporate environment.
If I can't find anything that does 95%+ of what I need, I will be writing it and releasing it as freeware.
All of the file synchronization applications are too heavy and full of features I don't need. The files are only available on a SMB shared drive and I can't use anything else like a rsync server, etc.
I am almost certain that I will need to write this myself to get just what I want, but I figured I'd might as well throw this out there to see if anybody knows of such a tool or, more likely, how interested people are in getting such a utility built.

Recent Posts
It is awaiting approval my the moderators. I signed it Chaim and it is titled Know The General and Learn the Specifics.
)
Please provide a sample of what the CSV files should look like based on the TXT file you provided. That might help to scope out the complexity of what is requested. 

Washington is a male American Eskimo. Eskies are known as "Dog Beautiful". So even though he doesn't care if you photograph him, when he is not his best, it doesn't matter, because he is always look'n good.
And of course it's Python related!!