Write a quick python script

Fixed Price
Deliver by - February 9, 2013
10
Budget

Details

Hello:


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:

/opt/shakemap/data/

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:
/opt/shakemap/data/[directory_name]/input/event.xml
/opt/shakemap/data/[directory_name]/input/event_dat.xml

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!


B

---
Skills: linux
Skills Required

Client Activity on this Job

Last Viewed: 2 years ago
Applicants: 11
Hired: 2