Hi, Another way is create .py scripts and put them in the cron. If you need the Zope environment, you can run this scripts using "zope/bin/zopectl run yourscript.py" I think ZEO is needed to perform this, but it's easy to configure it.
Regards -- Santi Camps Earcon S.L. - http://www.earcon.com - http://www.kmkey.com On 4/12/07, Winterflood, Jonathan <[EMAIL PROTECTED]> wrote:
Hi, I am well aware that Zope is a Web server, on top of which I am developping a site with the CPS Product (hence 'on my CPS site' ) My point is to call certain scripts to perform periodical actions on the server's data (compiling some data and sending it by email; checking an email adress and merging the received data into the site's documents) These tasks are obviously not OS-bound and are definitely Server-bound, which is why I'd like to include this into the site's logic. Events would indeed seem to be a good idea, however, I do not wish the script to be triggered by user-interaction, but automatically. Is there an event which is triggered at regular intervals to which I could subscribe for this? (I think not, at least I haven't found one) Also, the EventService isn't documented in the cps3book. Where might I be able to find information on using it to [subscribe to an event] / [create an event source to send events at regular intervals] Regards, Jonathan PS.: Please stay on the list :-) ------------------------------ *De:* Armand LEROUX [mailto:[EMAIL PROTECTED] *Date:* jeu. 12/04/2007 17:35 *À:* Winterflood, Jonathan *Cc:* Leroux, Armand *Objet :* RE: [CPS-devel] Zope/CPS script scheduling Hi, Zope2 is in no way a time task scheduler. It is a web application server (which serves python application…) Tip of the month : Use a realtime scheduler to avoid performance issue and security hazards. (cron is one of them) CPS uses events (most of them are asynchronous, which means they are not blocking the caller) to trigger specific actions, like reindexing, indexing, triggering workflow transition … Events are quite a broad topic. Most of them are triggered when users do something (browse in a folder, publish a document, …) You may have a look at portal_subscriber and portal_event_services to trigger your events. If your tasks are OS bound, plan them using OS scheduler … cron is one efficient and stable task planner. Windows surely has equivalent schedulers. Best regards Armand ------------------------------ *De :* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *De la part de* Winterflood, Jonathan *Envoyé :* jeudi 12 avril 2007 16:10 *À :* [EMAIL PROTECTED] *Objet :* [CPS-devel] Zope/CPS script scheduling Hi, I'd like to be able to call a script periodically on my CPS site. I've found TimerService0.2+ZopeScheduler0.2 ( http://www.zopera.org/Members/marcw/PloneArticle.2004-09-21.5312/view) but the site seems to be down (http://dev.legco.biz/downloads) Does anyone have the archives on-hand maybe? Also, Zope 3 has an adequate service but it seems that it's based on the new internals of Zope 3 and therefore cannot be used on Zope 2.9.4 I am aware of the possibility to call the script via the http interface, using cron+wget, but I'd rather this be included in the server, for simplicity of setup, and platform independance (the site is being developped for someone else, plus the devel is performed on a XP box...) I should be able to create the necessary code myself (it doesn't even need to be extremely flexible), if there is none available, but I would need some pointers towards getting a 'tick' source to drive the system TIA, Jonathan This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
