Re: scheduling python script to execute at certain time and day
Some time ago, Sean Upton adviced me not to use cron + wget. He found this a bad solution and instead recommended to use to use Zeo + cron. I think that this is better than the first approach, but the problem is that you have to enable Zeo. In fact, I'm not using Zeo, so I haven't tried it. However, here is the thread if you are interested: http://mail.zope.org/pipermail/zope/2003-March/132279.html Regards, Josef.
Laura McCord wrote:
I finished writing a python script that deletes files that are a certain age. How would I get zope/plone to execute this python script at noon everyday. What types of things do I need to do?
Set up a cron job which calls the appropriate Zope-url via wget. That's the most reliable setup IMHO.
Cheers, Maik
_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
Josef Albert Meile wrote:
Some time ago, Sean Upton adviced me not to use cron + wget. He found this a bad solution and instead recommended to use to use Zeo + cron.
We use cron and python's xml-rpc to call into python scripts contained in a Zope instance. We've been doing this in production for almost 2 years with no trouble at all. Kevin
participants (2)
-
Josef Albert Meile -
Kevin Carlson