[prev in list] [next in list] [prev in thread] [next in thread]
List: zope
Subject: Re: [Zope] Re: Unrestricted threads
From: Chris Withers <chris () simplistix ! co ! uk>
Date: 2008-07-25 16:04:38
Message-ID: 4889F996.4090102 () simplistix ! co ! uk
[Download RAW message or body]
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 )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic