I'm having trouble doing a db.table.insert from an external cron on macosx.
The system cron file 0-59/1 * * * * cd /Users/username/Desktop/appname/web2py && python web2py.py -R applications/appname/controllers/test.py -C -D 1 >> /tmp/ cron.output 2>&1 The crontab file in appname/cron directory */10 * * * * root *test/callcron I can see the callcron method is successfully being called every ten minutes from the cron.output file. But, in cron.output I get the following error WARNING:root:unable to import dbhash and none of the db.table.inserts put anything in the database. Although, when I hit the controller/action via the URL everything works fine and I get entries in the database. I've also tried the -S appname and -M switches, with no changes. I've followed the following posts http://groups.google.com/group/web2py/browse_thread/thread/cfe89bfa9d87bc/e4477603221c56f9?lnk=gst&q=external+controller+cron#e4477603221c56f9 and http://groups.google.com/group/web2py/browse_thread/thread/9acf0aae7383fcef/294453781d2037de?lnk=gst&q=calling+a+controller+form+cron#294453781d2037de with the same results. I'm new to web2py so I may be missing something obvious :) Thanks in advance, -Seth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@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 -~----------~----~----~----~------~----~------~--~---