Re: django-newsletter, cron job not working

2013-04-18 Thread Shawn Milochik
Here's an example of something taken straight from my crontab from a WebFaction account: 44 * * * * cd ~/webapps/awstats_milocast;./update_awstats.sh This runs on minute 44 of every hour. There are five "time" parameters. The first one is "minute." If you set a number there, it'll run on that min

Re: django-newsletter, cron job not working

2013-04-18 Thread Tom Evans
On Wed, Apr 17, 2013 at 7:38 PM, frocco wrote: > Hello, > > Can someone give me an example of running a cronjob hourly? > I am on webfaction and cannot get this working. > > I tried > > @hourly /usr/local/bin/python2.7 ~/webapps/ntw/myproject/manage.py runjob > submit > > I get no email > > If I S

Re: django-newsletter, cron job not working

2013-04-17 Thread frocco
Thank you On Wednesday, April 17, 2013 2:42:09 PM UTC-4, Shawn Milochik wrote: > > It's almost certainly an environment issue, such as an issue with your > PATH or PYTHONPATH. > > Just add to the command so that it puts all standard output and standard > error to a file to read what the message

Re: django-newsletter, cron job not working

2013-04-17 Thread Sam Walters
Hi In addition to the previous advice i would also check /etc/init.d/cron to see if the daemon is running. make sure you have the correct date+time settings in your shell eg: 'date' command. also run some sort of primitive debug command like: * * * * * touch "/tmp/$(date +\%d-\%m-\%Y-\%T)" for a

Re: django-newsletter, cron job not working

2013-04-17 Thread Shawn Milochik
It's almost certainly an environment issue, such as an issue with your PATH or PYTHONPATH. Just add to the command so that it puts all standard output and standard error to a file to read what the message is. your_command &> /tmp/broken_cron.log Then rig your cron job to run ASAP and read the lo

django-newsletter, cron job not working

2013-04-17 Thread frocco
Hello, Can someone give me an example of running a cronjob hourly? I am on webfaction and cannot get this working. I tried @hourly /usr/local/bin/python2.7 ~/webapps/ntw/myproject/manage.py runjob submit I get no email If I SSH in and sunit manually, it works fine -- You received this messa