Or: * * * * * (cd /path/to/you/project ; ./manage.py yourcommand)
The parentheses probably aren't necessary since the entire command portion of the crontab entry is almost certainly run in one shell. (I'm not sure about that "root" in creecode's version. Editing crontab with crontab -e on a linux box has no user specification because it edits the crontab of the invoking user. Perhaps it's different for a directly edited root crontab.) Bill On Tue, Feb 9, 2010 at 5:27 PM, creecode <[email protected]> wrote: > Hello Tim, > > On Feb 9, 10:34 am, Tim Daniel <[email protected]> wrote: >> I'm trying to launch custom admin commands with a cron(outside the >> project path). I'm running Django 1.1.1. I've tried to add the -- >> pythonpath='path_to_my_project' option, but it doesn't work either. > > Have you tried something like... > > * * * * * root /path/to/your/project/manage.py yourcommand > > Toodle-loooooooo........ > creecode > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

