25 Jul
2008
25 Jul
'08
4:04 p.m.
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