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