I would like you to write me a script in python (Linux) to do the following:
1. Identify when a new directory has been created at:
If a new directory has not been created, do nothing.
If a new directory has been created execute the following script:
/opt/shakemap/bin/shake -event [new_directory_name_here]
2. Identify when files have been updated at:
If neither of these files have not been updated, do nothing.
If one or more of these files has been updated, execute the following script:
/opt/shakemap/bin/shake -event [directory_name_here]
And that is it!