I am using filebot on my ds414. I have configured it via filebot node so it renames and moves media files from my downloads folder (where my download station saves torrents) to my video folder. Everything works pretty good but I would like to know how can I automate the process. I know that I can schedule to run filebot via task scheduler and so I did. However, that is not exactly what I am looking for. I want it to run automatically, for example, when download station finishes downloading a torrent. In theory I could set it to run every 1 minute via scheduler but I guess it will be too much for my nas. I asked on reddit as well and one of the suggestions was to program task scheduler to scan the downloads folder for new files and only if there are any to call filebot (that should be not so resource-consuming). Since I am not familiar with linux and scripts, I have no idea how to implement this solution. At the moment the filebot task in scheduler looks like this: /usr/local/filebot-node/task 2. Any viable solutions with step by step explanations will be greatly appreciated!
Any questions? Need some help?
3 posts • Page 1 of 1
e.g. bash script to check if /folder contains any files modified within the last 60 minutes and perform given command if that is the case:
https://stackoverflow.com/questions/524 ... ur-in-unix
Code: Select all
if test `find /folder -mmin -60`; then echo "RUN COMMAND" fi