summaryrefslogtreecommitdiffstats
path: root/askbot/cron/askbot_cron_job
blob: 2886808b24c09fea2d84b7726a2d05eb968e7d1d (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_PARENT_DIR/$PROJECT_DIR_NAME

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