mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-12 18:00:45 +01:00
19 lines
443 B
Bash
19 lines
443 B
Bash
#!/bin/bash
|
|
|
|
|
|
# don't forget to add this script to the /etc/crontab:
|
|
#
|
|
# */1 * * * * username /home/username/django/project/poll_helpdesk_email_queues.sh >> /tmp/foo.log 2>&1
|
|
|
|
# set your django and project paths here
|
|
PATHTODJANGO="/home/username/django/libraries/lib/python"
|
|
PATHTOPROJECT="/home/username/django/project/"
|
|
|
|
|
|
export PYTHONPATH=$PYTHONPATH:$PATHTODJANGO:$PATHTOPROJECT:
|
|
|
|
cd $PATHTOPROJECT
|
|
/usr/bin/python manage.py get_email
|
|
|
|
|