[web2py] Re: crontab sytax
The chapter works, the link to the syntax does not. http://web2py.com/books/default/reference/29/cron On Feb 21, 4:50 am, Wikus van de Merwe wrote: > I say the book works just fine:http://web2py.com/book/default/chapter/04#Cron > > The syntax you want to use is: @reboot * * * * root > *applications/test/controllers/private.py > Set that in your app/cron/crontab and make sure your controller does > db.commit() at the end. > > Also you need SOFTCRON = True in the wsgihandler (if you run it as WSGI > script).
[web2py] Re: crontab sytax
I say the book works just fine: http://web2py.com/book/default/chapter/04#Cron The syntax you want to use is: @reboot * * * * root *applications/test/controllers/private.py Set that in your app/cron/crontab and make sure your controller does db.commit() at the end. Also you need SOFTCRON = True in the wsgihandler (if you run it as WSGI script).
[web2py] Re: crontab sytax
I apologize, this should have been in my original post. For more specifics, my crontab file has only one line in it: @reboot root python web2py.py -S test -M -N -R applications/test/ controllers/private.py I have tried to restart the server multiple times, to no avail with getting this process working. the script in private.py works when i run it as root from my command line on my server, so I don't think the problem is with the script itself. Any help is greatly, greatly appreciated. Thank you in advance!