On Feb 17, 2011, at 7:29 AM, LightOfMooN wrote:
> 
> nohup web2py.py -i 127.0.0.1 -p 8000 &
> raises error:
>    nohup: cannot run comand 'web2py.py': No such file or directory.
> ofc, I try to run it in web2py catalog.

Try either: nohup ./web2py.py ...
or: python web2py.py ...

> 
> On 17 фев, 19:29, Massimo Di Pierro <[email protected]>
> wrote:
>> if apache manages start and stop of web2py threads you cannot use cron
>> inside apache. This does not mean you cannot use web2py cron. You just
>> have to start a web2py instance manually:
>> 
>> nohup web2py.py -i 127.0.0.1 -p 8000 &
>> 
>> On Feb 16, 9:19 am, 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


Reply via email to