> From: Nico Kadel-Garcia [mailto:[email protected]] > On Mon, Nov 22, 2010 at 9:55 PM, Andrey Repin
> > Cron job won't be able to know if file transfer is completed. It > > will have to guess from, e.g., testing the archive (if it's > > archive) for integrity. filesystem notification mechanism will > > for sure know, when the iostream got filewriteclose event. > > One of the more helpful tricks is to check if it's newer than a > certain period, and *older* than a certtain, modest period (such > as a few minutes) to make sure the transfer is complete. The "magic touch file" approach: touch a file timestamp.txt and then do "find -newer touchfile.txt". You could also rsync the directory in question to another one you have control on, and which is an svn working copy, and then have some job do a commit when rsync has finished synching. Not familiar with the name, I looked up Rube Goldberg, and yeah, exactly :-) Michael
