Originally Posted by Snark1994
Off the top of my head, you could create a hash of the original file on the share, copy the file to local_temp_dir, check the hashes match (ie. that it's copied correctly), and then copy them to local_dir.
Great, thank a lot Snark, I knew I would get good ideas from here. ;-)
Added to your suggestion:
. I will create another dir called hashes_dir
. On the ssh server create a hash file for each file i.e. filex.hash that contains the hash value
. On the client I copy the hash to the hashes_dir, copy the file to local_dir, when copy is done I check the hash and if it's correct I delete the hash file from hashes_dir.
. Process B checks the local_dir, and when it finds a file on it, it checks for it's hash file in the hashes_dir, if it's not there so I can read it safely.
euhmmm, now time to implement that, cheers. :-D