I think your crontab should just be */1 * * * * user * /web2py/applications/MYAPP/cron/ update_records.py
On Feb 14, 9:42 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > I think your crontab should just be > > */1 * * * * user *cron/update_records.py > > On Feb 14, 2:13 am, Thadeus Burgess <thade...@thadeusb.com> wrote: > > > When running the command below everything works fine, the python file > > executes correctly. > > > thadeus$ /usr/bin/python /web2py/web2py.py -S MYAPP -M -R > > /web2py/applications/MYAPP/cron/update_records.py >> > > /web2py/applications/MYAPP/cron/cron.log > > > This works great when running from bash, however when I stick this > > into cron, the only thing that appears in the log is the following. > > > =web2py Enterprise Web Framework > > =Created by Massimo Di Pierro, Copyright 2007-2010 > > =Version 1.74.11 (2010-02-03 10:53:34) > > =Database drivers available: SQLite3, PostgreSQL > > =Starting cron... > > > It seems as if web2py is just stopping there, and not executing the > > update_records file. This is what I have in my linux crontab file. > > > */1 * * * * /usr/bin/python /web2py/web2py.py -S MYAPP -M -R > > /web2py/applications/MYAPP/cron/update_records.py >> > > /web2py/applications/MYAPP/cron/cron.log > > > Why does this work on the command line but not when put into external > > cron ? On an older version of web2py (version 1.64.*) it works > > perfectly, currently this is running on 1.74.11. > > > -Thadeus -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.