I want to automate a process after Dropbox does update changes made to a directory (changes could be made in a subdirectory too).
In order for this to work the monitoring script should wait for Dropbox to report the synchronization status as done, as I do not want to start the action when only some files where updated, or to start multiple executions in parallel.
This has to work on Linux, where I do have the Dropbox headless daemon already configured to run. I also have the dropbox.py script which seems to be able to report if the syncronization was made.
./dropbox.py status
Up to date
I was considering using a cron job but I do want to minimize the delay between the moment when dropbox finishes the sync and the moment I trigger the execution. Using Cron every minute does not seem a good approach, I would prefer something that is using some kind of triggers, not a dumb polling.