According to my understanding of web2py book you should use hard coded cron, which means the system one.
On 17 feb., 12:03, LightOfMooN <[email protected]> wrote: > Have somebody know any solution for this problem? > > On 17 фев, 13:08, b0j3 <[email protected]> wrote: > > > I tried the same on my cron (just working on it) and it looks like it > > doesn't run when web2py is run in wsgi under Apache2. > > When I start it with python web2py works w/o a problem. > > Strange. > > > B. > > > On 17 feb., 08:24, LightOfMooN <[email protected]> wrote: > > > > How to check, is the cron working? > > > If i start web2py with command line: > > > python web2py.py, Cron runs my function once, and after minute prints > > > error: cannot allocate memory > > > > On 16 фев, 20:19, LightOfMooN <[email protected]> wrote: > > > > > Hello > > > > I have web2py installed with setup-web2py-ubuntu.sh > > > > It runs with Apache mod_wsgi. > > > > > Crontab of myapp is: > > > > */1 * * * * root *cron/test > > > > > And function: > > > > def test(): > > > > shop = db(db.shops.id==8).select().first() > > > > new = shop.daystodelete + 1 > > > > shop.update_record(daystodelete=new) > > > > db.commit() > > > > return 'done' > > > > test() > > > > > manually function works fine. But not with cron. Seems it's not > > > > working. > > > > Any ideas? Thx > >

