[Zope] Re: Unrestricted threads

Chris Withers chris at simplistix.co.uk
Fri Jul 25 12:04:38 EDT 2008


Tres Seaver wrote:
> Note that you can write scripts designed to use the ZODB, but be run
> from a crontab.  E.g.:
> 
>   $ cat Products/foo/scripts/send_report.py
>   mailnost = app.site.MailHost
>   catalog = app.site.portal_catalog()
>   ....
> 
>   $ crontab -l
>   55 0 * * *  /home/tseaver/instance/bin/zopectl run \ #(no linebreak!)
>               /home/tseaver/instance/Products/foo/scripts/send_report.py
> 
> You can *only* use this approach if you use ZEO, of course.

...and if you want lots of helper stuff for this kind of operation, you 
can use stepper:

http://www.simplistix.co.uk/software/zope/stepper

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list