summaryrefslogtreecommitdiffstats
path: root/askbot/cron/askbot_cron_job
blob: 04ba230315054f72585f76211f1fb552bbda6974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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=$PROJECT_DIR_NAME/$PROJECT_NAME

#these are actual commands that are to be run
python $PROJECT_ROOT/manage.py send_email_alerts