summaryrefslogtreecommitdiffstats
path: root/forum/cron/askbot_cron_job
diff options
context:
space:
mode:
Diffstat (limited to 'forum/cron/askbot_cron_job')
-rw-r--r--forum/cron/askbot_cron_job18
1 files changed, 18 insertions, 0 deletions
diff --git a/forum/cron/askbot_cron_job b/forum/cron/askbot_cron_job
new file mode 100644
index 00000000..71910f27
--- /dev/null
+++ b/forum/cron/askbot_cron_job
@@ -0,0 +1,18 @@
+#!/bin/sh
+# this is a cron job for askbot that includes all
+# commands that need to be run periodically
+# please find introduction to cron here:
+# http://www.unixgeeks.org/security/newbie/unix/cron-1.html
+#
+# if you prefer, you can split this file into several
+
+PROJECT_PARENT_DIR=/path/to/dir_containing_askbot_site
+PROJECT_DIR_NAME=askbot_site
+
+export PYTHONPATH=$PROJECT_PARENT_DIR:$PYTHONPATH
+PROJECT_ROOT=$PYTHONPATH/$PROJECT_NAME
+
+#these are actual commands that are to be run
+python $PROJECT_ROOT/manage.py send_email_alerts
+python $PROJECT_ROOT/manage.py once_award_badges
+python $PROJECT_ROOT/manage.py multi_award_badges