[web2py] Re: Help Getting Cron Task to run

2011-09-25 Thread Lennon
Well I just realized that */1 * * * * python /home/www-data/web2py/web2py.py -S sos_test -M -N - R applications/sos_test/private/scripts/ctest.py has the -N in it which would stop crontab from running. I removed that but it's still not working. I tried setting SOFTCRON = True And then tried a

[web2py] Re: Help Getting Cron Task to run

2011-09-24 Thread Lennon
I also just tried: */1 * * * * python /home/www-data/web2py/web2py.py -S sos_test -M -N - R applications/sos_test/private/scripts/ctest.py and */1 * * * * python /home/www-data/web2py/web2py.py -S sos_test -M -N - R /private/scripts/ctest.py I also noticed that my crontab file doesn't have a fi

[web2py] Re: Help Getting Cron Task to run

2011-09-24 Thread Lennon
I'm still not able to get this to run. I even tried restarting apache but to no avail. */1 * * * * python /home/www-data/web2py/web2py.py -J -S my_app_name - R /cron/ctest.py ctest.py looks like this and runs fine in the command line on the server: FILE = open("pytest.txt","w") FILE.writelines(

Re: [web2py] Re: Help Getting Cron Task to run

2011-09-23 Thread Bruno Rocha
And if use db. dont forget the proper commits and rollbacks! http://zerp.ly/rochacbruno Em 23/09/2011 12:39, "Ross Peoples" escreveu: > I forgot to mention that if you are using db at all in your script, that you > need to use the -M option to import the models.

Re: [web2py] Re: Help Getting Cron Task to run

2011-09-23 Thread Jonathan Lundell
On Sep 23, 2011, at 8:28 AM, Lennon wrote: > Thanks for the update. > > So in that case the old Cron should still be working. Yes. > > Can anybody tell me if to use cron on linux running apache or windows > locally, is there any additional setup needed besides adding inserting > a line into cr

[web2py] Re: Help Getting Cron Task to run

2011-09-23 Thread Ross Peoples
I forgot to mention that if you are using db at all in your script, that you need to use the -M option to import the models.

[web2py] Re: Help Getting Cron Task to run

2011-09-23 Thread Ross Peoples
You typically need to run it in the web2py environment (use absolute paths): */1 * * * * python /path/to/web2py/web2py.py -J -S app_name -R /path/to/script You could also add something like "2&1> /path/to/log.log" so that output gets put into a log file in case there's an error in your script.

[web2py] Re: Help Getting Cron Task to run

2011-09-23 Thread Lennon
Thanks for the update. So in that case the old Cron should still be working. Can anybody tell me if to use cron on linux running apache or windows locally, is there any additional setup needed besides adding inserting a line into crontab in order to make scheduled tasks work? On Sep 23, 11:16 a

[web2py] Re: Help Getting Cron Task to run

2011-09-23 Thread Ross Peoples
I don't know too much about it yet, but I do know that it is still experimental, so it hasn't replaced anything yet. There was talk of replacing it in the future, but it may end up complimenting it. Again, I'm not totally sure about the future of it, but right now, you can play with it, but pro

[web2py] Re: Help Getting Cron Task to run

2011-09-23 Thread Lennon
Anybody have anymore info on if Cron was replaced by scheduler? On Sep 22, 4:56 pm, Richard Vézina wrote: > I completly out of the inside talk about that, but I read in thread that > Scheduler will replace cron job... Also the new scheduler are still > experimental in the new release... > > Richa

Re: [web2py] Re: Help Getting Cron Task to run

2011-09-22 Thread Richard Vézina
I completly out of the inside talk about that, but I read in thread that Scheduler will replace cron job... Also the new scheduler are still experimental in the new release... Richard On Thu, Sep 22, 2011 at 4:49 PM, Lennon wrote: > Just bumping to see if anybody can point me in the right direc

[web2py] Re: Help Getting Cron Task to run

2011-09-22 Thread Lennon
Just bumping to see if anybody can point me in the right direction. On Sep 21, 9:36 pm, Lennon wrote: > I'm running web2py locally with Windows 7 and live on a Linux Ubuntu > server and I haven't been able to get my cron job to run in either. > > My crontab looks like this: > > */1 * * * * root *