I think I know what's causing the issue, try the following as your
web2py.py instead of the original one:

#!/usr/bin/python
# -*- coding: utf-8 -*-

import os
import sys

path = os.path.dirname(os.path.abspath(__file__))
if not path in sys.path:
    sys.path.append(path)
os.chdir(path)

import gluon.import_all
from gluon.widget import start

# Starts cron daemon
cron = gluon.contrib.cron.hardcron()
cron.start()

# Start Web2py !
start()


On Feb 22, 1:20 pm, AchipA <attila.cs...@gmail.com> wrote:
> OK, I don't have a windows machine at hand, will check this on monday.
>
> As for the docs, that's in progress, I'm working on an extended doc
> based onhttps://mdp.cti.depaul.edu/web2py_wiki/default/wiki/Web2pyCron
> to be part of the official documentation.
>
> On Feb 22, 8:35 am, Iceberg <iceb...@21cn.com> wrote:
>
> > On Feb22, 7:53am, AchipA <attila.cs...@gmail.com> wrote:
>
> > > On Feb 21, 9:12 pm, David Marko <dma...@tiscali.cz> wrote:
>
> > > > I would also appreciate some working example/appliance for using
> > > > *cron. Its very usefull thing!!!
>
> > > web2py comes with an example (cleaning sessions), see applications/
> > > admin/cron ! Do you think additional examples should be put there, or
> > > that maybe new applications should include a template commented out
> > > crontab ?
>
> > IMHO, applications/admin/cron is great for a ready, handy, real
> > example, but we still need a dedicated section located in here:
> >  http://mdp.cti.depaul.edu/examples/default/docs
> > or here:
> >  http://mdp.cti.depaul.edu/examples/default/examples
>
> > In which some general information about softcron, hardcron, extcron
> > should be mentioned, just like:
> >  http://groups.google.com/group/web2py/msg/9aa1bf0c74d52a7f
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to