Jim,

1.99.4 is pretty old, you should update...

It may be more handy if you try to find a old version of the book, I don't
know but since web2py is progressing very rapidly it may be possible that
the way to use crontab has change... It could explain your problem...

Richard


On Sun, Apr 14, 2013 at 1:57 PM, Jim Houchens <[email protected]>wrote:

> I hope one of you folks can help - I'm still a little green with web2py
> and python, but am trying to get the CRON to work to run a script in our
> application.
>
>
>
> I've been scouring the web for examples, but wonder if our version is
> setup to utilize it.**** **
> I've tried both the unix cron, and the web2py crontab, but can't get
> either to execute my test script.
>
> My latest attempt via the applications crontab :
> #crontab
> 0-59/1  *  *  *  * root *test_cron_jfh/main
>
>
> I've tried with and w/o the wsgihandler.py variable of SOFTCRON = True
> (and False - restarting apache in between)
>
> I've tried running it from the unix OS with python as in :
>
> $python2.7 /home/ameteq/webapps/web2py/web2py/web2py.py -S
> sms_test_protocol -M -R
> /home/ameteq/webapps/web2py/web2py/applications/sms_test_protocol/controllers/test_cron_jfh.py
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2011
> Version 1.99.4 (2011-12-14 14:46:14) stable
> Database drivers available: SQLite3, pymysql, PostgreSQL
> $
>
>
> Have also tried to run a  script from the unix command-line with just
> web2py.py :
>
>       ./web2py.py -S sms_test_protocol -R
> *applications/sms_test_protocol/test_cron_jfh/ins_err
>
> ** **
>
>       Traceback (most recent call last):
>
>         File "./web2py.py", line 16, in ?
>
>           import gluon.widget
>
>         File "/home/ameteq/webapps/web2py/web2py/gluon/__init__.py", line
> 15, in ?
>
>           from globals import current
>
>         File "/home/ameteq/webapps/web2py/web2py/gluon/globals.py", line
> 21, in ?
>
>           from html import xmlescape, TABLE, TR, PRE, URL
>
>         File "/home/ameteq/webapps/web2py/web2py/gluon/html.py", line 30,
> in ?
>
>           from utils import web2py_uuid, hmac_hash
>
>         File "/home/ameteq/webapps/web2py/web2py/gluon/utils.py", line
> 12, in ?
>
>           import hashlib
>
>       ImportError: No module named hashlib
>
> ** **
>
> ** **
>
> If you are familiar with this, can you point me in the right direction?  I've
> tried several recommendadtions from the web, but so far, no luck.
>
> If you can help, it would be greatly appreciated.
>
> ** **
>
> Thanks,
>
> ** **
>
> -jim
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to