Guest plexman Posted October 2, 2016 Posted October 2, 2016 (edited) I've modified a bash file monitoring script that I found here to update the library when a file changes in the given directory. So the script sends a curl request to update the Emby library when detects a change in any file inside the given path, it also works with files inside sub-directories. Thanks also to this post for the curl request. You just have to change de path and add your Emby API key to the curl link. The script runs every minute but this can be changed in the end where the sleep command is. To run it in the background you just have to execute the command: nohup /root/watch_emby.sh >/dev/null 2>&1 & This is for all linux users who don't have Real Time Monitoring. If you also want you can change the cmd variable to execute something else than the library update. Enjoy! watch_emby.txt Edited October 2, 2016 by plexman
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now