Jellyfin Forum
Run Scripts - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Run Scripts (/t-run-scripts)



Run Scripts - ccbadd - 2024-04-16

I have Jellifin 10.8.13 in docker running fine except for grabbing my guide data.  I have an HDHomerun and I subscribe to the dvr service so I can grab the xml guide data.  I created the script in the /config/scripts and it runs fine from a bash prompt and the data can be imported without issue.  I just can't seem to figure out how to setup the script to run periodically.  Should I add a cron job for it?


RE: Run Scripts - bitmap - 2024-04-16

Jellyfin won't run it for you as far as I know, so you can either set up a cron job on the host or you can figure out how to pull cron into your Docker image. Depending on the release you use, I know LSIO has a universal add-in to install cron and gives you a brief explanation of how to use it. You essentially create static files in your config dir that hold your cron jobs and chown them to root, cron inside the container does the rest.


RE: Run Scripts - ccbadd - 2024-04-17

I tried to install the addon and realized that I was using the official Jellyfin docker container so it did not work. I found the LSIO version and set it up, add the chron addon and it does work now. Thanks for the help.