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 file extension.  Is
that correct?

On Sep 24, 3:33 pm, Lennon <lpru...@hotmail.com> wrote:
> 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('cronification')
> FILE.close()
>
> Any ideas?
>
> On Sep 23, 11:38 am, Ross Peoples <ross.peop...@gmail.com> wrote:
>
>
>
>
>
>
>
> > 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.

Reply via email to