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
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )