Depending on the cron mode, you likely won't see the logging.warn as it is executed in a different process when called from cron. When called from the script, the warn is executed in the 'main' process and hence you can see it. So that in itself does not mean anything. When debugging cron functions, first make sure it works by calling it via - S app/contr/func as debug output will be hard to obtain straight from subprocesses.
On Jul 16, 5:46 pm, Fran <[email protected]> wrote: > I'm using Trunk Source on Windows XP (Python-2.5.4) > > I can get Cron working fine if I do: > */5 * * * * root *applications/myapp/cron/ > email_send.py > However this fails: > */5 * * * * root *mycontroller/email_send > > According to the docs, this should > work:http://web2py.com/examples/default/cron > > email_send function is currently just: > import logging > logging.warn('email about to be sent!') > > email_send.py is just: > import urllib > urllib.urlopen('http://%s/myapp/mycontroller/email_send' % > request.env.http_host).read() > > Many thanks, > Fran. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

