Crontab -e (Ubuntu) not working with auto update library code
See original GitHub issueI use the following line of code to run a library scan and update of the TV Trending library
cd /opt/appdata/pydpl/&& sudo python plexlibrary tv_trending
- this works perfectly.
In sudo crontab -e, I have entered:
@daily cd /opt/appdata/pydpl/&& sudo python plexlibrary tv_trending
- however crontab does not seem to be running this script and I am having to do this manually.
Please could someone advise what Iβm doing wrong?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Why crontab scripts are not working? - Ask Ubuntu
The reason is that cron does not have the same PATH environment variable as the user. Save this answer.
Read more >Why is my crontab not working, and how can I troubleshoot it?
A frequent problem users make with crontab entries is that they forget that cron runs in a different environment than they do as...
Read more >How To Use Cron to Automate Tasks on Ubuntu 18.04
To schedule a job, open up your crontab for editing and add a task written in the form of a cron expression. The...
Read more >CronJob not running - Stack Overflow
Here's a checklist guide to debug not running cronjobs: ... in CRON tab and let the log file get created automatically when the...
Read more >Make auto update cron job optional at install time Β· Issue #2932
I can of course delete the cron job, and I do. I just think it would be easier if that was an option...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
python3 not python
copy paste it and well done edit the name of the folder
python-plexlibrary in the script and it will works withoutany problems
When moving between python2 and python3 (or rather, different versions of shelve), you have to first delete the shelve file. python2 is no longer supported, you may run into other issues in the future.