1đź‘Ť
-
Copy script to server
-
test script manually on server
-
set cron, “crontab -e” to a value that will test it soon
-
once you’ve debugged issues set cron to the appropriate time.
👤monkut
- [Answered ]-Django can not send email when deployed by nginx+uwsgi+Django
- [Answered ]-How to verify that at least one of several fields in a model are not blank
0đź‘Ť
Sounds like a job for Cron?
Cron is a scheduler that provides a way to run certain scripts (apps, etc.) at certain times.
Here is a short tutorial that explains how to set up cron.
See this for more general cron information.
Edit:
Also, since you are using CentOS: if you end up having issues with your script later on… it could partly be caused by SELinux. There are ways to disable SELinux on your server (if you have enough access permissions.) But… there are arguments against disabling SELinux, as well.
👤summea
- [Answered ]-Django Python: Today's date gives error "couldn't be interpreted in time zone America/Los_Angeles; it may be ambiguous or it may not exist."
- [Answered ]-Image upload and Manipulation in Django
- [Answered ]-How do I merge two django db's?
- [Answered ]-Django – Save base64 image from template to static
- [Answered ]-Django.contrib.auth.views.login returns Anonymous user
Source:stackexchange.com