in reply to Re: Synchronisation between multiple scripts
in thread Synchronisation between multiple scripts

I was also thinking about this approach, but I was a bit reluctant to implement it because it was a lot more work than using the lock file.
If the transfer becomes a bottleneck, I will think about implementing it again.
At the moment I am busy reducing my watch cycles for the successful transfers, but if I think it is too slow, then I will go for this approach.
  • Comment on Re^2: Synchronisation between multiple scripts

Replies are listed 'Best First'.
Re^3: Synchronisation between multiple scripts
by JavaFan (Canon) on Jan 16, 2009 at 11:38 UTC
    I would go for BrowserUK's approach, and I fail to see how it's going to be a lot more work. In fact, it's probably going to be a lot less work. With a separate program doing the FTP transfers, you only have one place where you have to worry about failed transfers, instead of having to deal with it in all your programs.

    Besides, it follows the Unix toolkit approach: separate things are done by separate programs - each program tuned to do its task very well.