I am working towards automating the running of my .rb script. Currently I have to go to terminal and type ruby myscript
.
My plan, since I don't know exactly when the script will run each week/month, is to run the script when a file appears in a dropbox folder.
It would be something like this:
If random_file.csv
is seen in the same folder as myscript
,
myscript
loads random_file.csv
, does something with it, then saves random_file.csv
in a separate folder and deletes it from the dropbox folder.
Is that possible, and if not, what are some good alternatives to automating scripts? Will I have to nail down a time to run it each week/month? Any guidance on what to look for is appreciated.
one way of automating dropbox files and folder is using the automator . I found this link which allows you to set actions on your dropbox folder
http://www.hongkiat.com/blog/automate-dropbox-files-with-actions/