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 wrote:
> hi, you're mix/matching the available options.
> First of al
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 y
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
> *applicat
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 = Tru
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 w
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 2>&1
Seems kinda lo-tech. Will this cause any problems?
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 2>&1
In /var/web2py/applications/init/cron/crontab, I have:
*/6 * * * * root *cron
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
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
2>&1
On 13 mayo, 15:02, pbreit wrote:
> 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
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 2>&1
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 wrote:
> Do you have those spaces in there? The cron line should be:
>
> 55 07 * * * root *default/limpiar_event
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
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 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 e
> > 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 AF
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//cron etc.
BRGDS,
Chris
p.s. web2py rocks!! It really takes the pain out of web
development :-)
On Jan 3, 5:36 pm, Jonathan Lundell w
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 i
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
wrote:
> Hi,
> Can script
17 matches
Mail list logo