Hi António Test your script thoroughly on the commandline first. You can run the script in the environment of your app. See commandline options for running scripts in http://web2py.com/book/default/chapter/04
In addition to running the whole script, you can debug sections of your code by opening up a commandline with something like this: python web2py.py -S yourapp -M -N If you want to log results of your scripts, consider writing them to a log file or a DB. Be careful when using cron not to start too many processes, it is often better to run one script with a continuous loop to prevent this. It is described in the book. I notice that cron sometimes seems to lock sqlite, but that's probably my badly written test code rather than a bug :) Regards, -D On Nov 23, 11:15 pm, António Ramos <ramstei...@gmail.com> wrote: > Print in a script called by cron does not print to web2py console. > At least in my windows machine. > Also i read the book and the examples of cron points to files in the file > system forgetting the application folder. > > I think cron tasks should be in the application path and inside cron folder > or other for that purpose. Also in admin there should be available all cron > tasks to be edited by editpad. > > Right? > > Best regards > António > > Em 22 de novembro de 2010 15:34, António Ramos <ramstei...@gmail.com>escreveu: > > > I my pc it does not print. > > Also the path to the script have to include the absolute path? > > Can it be a controller script? > > > Antonio > > > 2010/11/22 Vinicius Assef <vinicius...@gmail.com> > > > 2010/11/19 António Ramos <ramstei...@gmail.com>: > >> > Hello, can cron tasks write output to web2py console? > > >> Just use print command. > >