[zope] refresh page

Andy Gimblett andy.gimblett@ftech.net
Thu, 22 Mar 2001 09:22:14 -0000


> My application need to send mails everyday to the people.
> For that I have written one Dtml method. which will refresh every
> 24hr.(using html tags.)
> But for that, that page should be running in the browser always.

This sounds like a job for cron:

man cron
man crontab

If the job needs to get infomation which is held in Zope, you'd need to
write a small HTTP client in Python which gets the info it needs by
querying the Zope server just as if it was a web browser being driven
by a human, formats it, and sends the email.

Another approach would be to look into xmlrpc.

But understand: the client works _outside_ of Zope. This is necessary
to run it as a cron job, which is the best way to run a timed process
under Unix/Linux.

Good luck!

-Andy

PS: Please don't send HTML email to the list! :-)

-- 
Andy Gimblett <andy.gimblett@ftech.net> Programmer 
Frontier Internet Services Limited <www.frontier-internet.ltd.uk> 
Tel: 029 20 820 044 Fax: 029 20 820 035 
Statements made are at all times subject to Frontier's Terms and 
Conditions of Business, which are available upon request.