scheduling a piece of code to run
Hi all, Can anybody please offer any starting points on exactly that? Bascily I want to run a piece of code (DTML or Python) every, say, 5 mins, that will do some SQL queries and then other stuff if a date field is greater than the current date and time. Simple stuff - I hope! But I have not much idea where to start looking, and I haven't been too successful with what I've tried so far... :( thanks for any help! Regards, Greg Conway. This electronic transmission and any files attached to it are strictly confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify us by return and delete the same. Further enquiries/returns can be posted to postmaster@gmlnt.com Thank you.
Write a peice of Python to call that code either through xmlrpc or a simple urlopen. Schedule that in whatever OS you happen to running (cron, scheduled tasks etc.) -- Andy McKay Agmweb Consulting http://www.agmweb.ca ----- Original Message ----- From: "Greg Conway" <greg@gmlnt.com> To: "Zope@Zope. Org" <zope@zope.org> Sent: Wednesday, August 28, 2002 7:25 PM Subject: [Zope] scheduling a piece of code to run
Hi all,
Can anybody please offer any starting points on exactly that?
Bascily I want to run a piece of code (DTML or Python) every, say, 5 mins, that will do some SQL queries and then other stuff if a date field is greater than the current date and time.
Simple stuff - I hope! But I have not much idea where to start looking, and I haven't been too successful with what I've tried so far... :(
thanks for any help!
Regards,
Greg Conway.
This electronic transmission and any files attached to it are strictly confidential and intended solely for the addressee. If you are not the intended addressee, you must not disclose, copy or take any action in reliance of this transmission. If you have received this transmission in error, please notify us by return and delete the same. Further enquiries/returns can be posted to postmaster@gmlnt.com Thank you.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi Greg! For scheduling you can use the Xron product http://www.zope.org/Members/lstaffor/Xron or the Xron product with the improved interface http://www.zope.org/Members/jmeile/Xron_improvements. Xron misbehaves sometimes, but I use it for about 3 month without any problems on Zope 2.5.1 bin./Linux. HTH, Juergen --On Donnerstag, 29. August 2002 03:25 +0100 Greg Conway <greg@gmlnt.com> wrote:
Hi all,
Can anybody please offer any starting points on exactly that?
Bascily I want to run a piece of code (DTML or Python) every, say, 5 mins, that will do some SQL queries and then other stuff if a date field is greater than the current date and time.
Simple stuff - I hope! But I have not much idea where to start looking, and I haven't been too successful with what I've tried so far... :(
thanks for any help!
Regards,
Greg Conway.
Bascily I want to run a piece of code (DTML or Python) every, say, 5 mins, that will do some SQL queries and then other stuff if a date field is greater than the current date and time.
I have never used it, but this from CVS looks like something useful. http://cvs.zope.org/Products/Event/ http://cvs.zope.org/Products/Scheduler/ And ZC comments on these products? :) -- /Magnus Heino
participants (4)
-
Andy McKay -
Greg Conway -
Juergen Plasser -
Magnus Heino