[web2py] Re: CRONTAB Issues - cannot get it to run?

2013-04-15 Thread Niphlod
hi, you're mix/matching the available options. First of all, if your system has an available cron, use that. web2py's cron is not as accurate as unix one. If you want to leverage cron, at least read the section in the book that speaks of it http://web2py.com/books/default/chapter/29/04#Cron If

Re: [web2py] Re: CRONTAB Issues - cannot get it to run?

2013-04-15 Thread James F Houchens
Thanks for your help Def read the book but struggled a bit. I ended up using the unix cron tab and got it working. Thanks again for taking the time to respond. Sent from my iPhone On Apr 15, 2013, at 10:08 AM, Niphlod niph...@gmail.com wrote: hi, you're mix/matching the available

[web2py] Re: crontab sytax

2012-02-21 Thread Wikus van de Merwe
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 =

[web2py] Re: crontab sytax

2012-02-21 Thread web-dev-m
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 dupakrop...@googlemail.com wrote: I say the book works just fine:http://web2py.com/book/default/chapter/04#Cron The syntax you want to use is: @reboot

[web2py] Re: crontab sytax

2012-02-20 Thread web-dev-m
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

[web2py] Re: Crontab with WSGI

2011-05-13 Thread pbreit
Do you have those spaces in there? The cron line should be: 55 07 * * * root *default/limpiar_eventos Are you able to run the function in your browser? http://127.0.0.1:8000/myapp/default/limpiar_eventos

[web2py] Re: Crontab with WSGI

2011-05-13 Thread luifran
http://127.0.0.1:8000/myapp/default/limpiar_eventos work fine in cherokee web server, and crontab work fine in web2py´s server but not in cherokee web server. On 13 mayo, 10:08, pbreit pbreitenb...@gmail.com wrote: Do you have those spaces in there? The cron line should be: 55 07 * * * root

[web2py] Re: Crontab with WSGI

2011-05-13 Thread pbreit
I doubt it's a Cherokee problem. Do you have a crontab set up on your server? For example, this is what I have in my unix crontab (not web2py crontab). Cron is still a little confusing to me. MAILTO=c...@myserver.com 0-59/1 * * * * cd /var/web2py python web2py.py -C -D 1 /dev/null 21

[web2py] Re: Crontab with WSGI

2011-05-13 Thread luifran
No , only in web2py, not in cherokee. Where I write this code? 0-59/1 * * * * cd /var/web2py python web2py.py -C -D 1 /dev/null 21 On 13 mayo, 15:02, pbreit pbreitenb...@gmail.com wrote: I doubt it's a Cherokee problem. Do you have a crontab set up on your server? For example, this is what

[web2py] Re: Crontab with WSGI

2011-05-13 Thread pbreit
I don't really understand how the web2py cron an external cron work together. I have a crontab in my application cron folder that appears to run when I'm running web2py on my Mac. But on my server, I have a regular crontab file (set up with sudo -u www-data crontab -e) that executes web2py to

[web2py] Re: Crontab with WSGI

2011-05-13 Thread pbreit
Actually I'm looking at my cron right now and am pretty confused. Does anyone know how external cron works exactly? In my /etc/crontab, I have: 0-59/1 * * * * cd /var/web2py python web2py.py -C -D 1 /dev/null 21 In /var/web2py/applications/init/cron/crontab, I have: */6 * * * * root

[web2py] Re: Crontab with WSGI

2011-05-13 Thread pbreit
Now I am wondering if I should just have crontab wget my cron functions into dev/null? 0-59/1 * * * * wget http://localhost/myapp/cron/cronjob /dev/null 21 Seems kinda lo-tech. Will this cause any problems?

[web2py] Re: Crontab

2011-01-05 Thread stefaan
Yes they can. They should all run from the main web2py folder (do not use os.chdir(...)!) Digression: I'd like to fix that eventually. It's not so bad to require the cwd to be web2py for startup, but it shouldn't matter after that. I think it's a bad idea to use os.chdir because AFAIK

[web2py] Re: Crontab

2011-01-05 Thread mdipierro
What you say is true but Jonathan is talking at startup, before the web server starts and before any thread is created. On Jan 5, 10:19 am, stefaan stefaan.hi...@gmail.com wrote: Yes they can. They should all run from the main web2py folder (do not use os.chdir(...)!) Digression: I'd

[web2py] Re: Crontab

2011-01-03 Thread mdipierro
Yes they can. They should all run from the main web2py folder (do not use os.chdir(...)!) the only issue is that cron jobs do not have access to stdout so they cannot print. You can use the logging module or print to a file. Massimo On Jan 3, 11:17 am, Christopher Blunt

Re: [web2py] Re: Crontab

2011-01-03 Thread Jonathan Lundell
On Jan 3, 2011, at 9:20 AM, mdipierro wrote: Yes they can. They should all run from the main web2py folder (do not use os.chdir(...)!) Digression: I'd like to fix that eventually. It's not so bad to require the cwd to be web2py for startup, but it shouldn't matter after that. the only

[web2py] Re: Crontab

2011-01-03 Thread Christopher Blunt
Thanks very much for the help Massimo and Jonathan. I found the script was working but it was creating the log in the main web2py folder rather than applications/app_name/cron etc. BRGDS, Chris p.s. web2py rocks!! It really takes the pain out of web development :-) On Jan 3, 5:36 pm, Jonathan